# Hyprlock config with Catppuccin Mocha theme
general {
    grace = 0
    no_input_trim = false
}

# Background
background {
    monitor =
    path = ~/.config/wallpapers/lock.png  # Fallback to solid color if no image
    color = rgba(30, 30, 46, 1.0)  # Catppuccin Mocha base (#1e1e2e)

    # Blur
    blur_passes = 2
    blur_size = 7
    noise = 0.0117
    contrast = 0.8916
    brightness = 0.8172
    vibrancy = 0.1696
    vibrancy_darkness = 0.0
}

# Time
label {
    monitor =
    text = cmd[update:1000] echo "$(date +"%H:%M")"
    color = rgba(205, 214, 244, 1.0)  # Catppuccin Mocha text (#cdd6f4)
    font_size = 120
    font_family = JetBrainsMono Nerd Font Bold
    position = 0, 200
    halign = center
    valign = center
}

# Date
label {
    monitor =
    text = cmd[update:1000] echo "$(date +"%A, %B %d")"
    color = rgba(180, 190, 254, 1.0)  # Catppuccin Mocha lavender (#b4befe)
    font_size = 30
    font_family = JetBrainsMono Nerd Font
    position = 0, 80
    halign = center
    valign = center
}

# Password input
input-field {
    ignore_empty_input = false
    monitor =
    size = 300, 50
    outline_thickness = 2
    dots_size = 0.3
    dots_spacing = 0.15
    dots_center = true
    dots_rounding = 2
    outer_color = rgba(180, 190, 254, 1.0)
    inner_color = rgba(49, 50, 68, 1.0)
    font_color = rgba(205, 214, 244, 1.0)
    fade_on_empty = false
    placeholder_text = <i>Touch YubiKey or enter password...</i>
    hide_input = false
    check_color = rgba(166, 227, 161, 1.0)
    fail_color = rgba(243, 139, 168, 1.0)
    fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
    fail_timeout = 3000
    capslock_color = rgba(249, 226, 175, 1.0)
    position = 0, -80
    halign = center
    valign = center
}
# Lock icon
label {
    monitor =
    text = 
    color = rgba(203, 166, 247, 1.0)  # Catppuccin Mocha mauve (#cba6f7)
    font_size = 40
    font_family = Font Awesome 6 Free
    position = 0, -150
    halign = center
    valign = center
}

# User label
label {
    monitor =
    text = $USER
    color = rgba(205, 214, 244, 1.0)  # Text
    font_size = 20
    font_family = JetBrainsMono Nerd Font
    position = 0, -180
    halign = center
    valign = center
}
