/* Chanh Dao Theme - Custom Styles */
/* Calm, warm, accessible – following the Chanh Dao Design System */

/* Base font size */
html {
    font-size: 18px;
}

/* Override main background – warm cream with subtle golden glows */
.login-pf body {
    background: #FCF8ED;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(232, 197, 71, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(184, 134, 11, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: #3E2F1B;
    font-family: 'Inter', 'Roboto', 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
}

/* Override card – warm white surface */
.login-pf .card-pf {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(62, 47, 27, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 420px;
    margin: 0 auto;
    transition: all 0.25s ease-out;
    overflow: hidden;
}

.login-pf .card-pf:hover {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Header styling */
.login-pf .card-pf header {
    background: transparent;
    border-bottom: none;
    padding: 15px 20px 10px;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

/* Logo/Brand heading – gold gradient text */
.login-pf .card-pf header h1 {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    font-family: 'Lora', 'Crimson Text', 'Playfair Display', Georgia, serif;
}

/* Remove pseudo-elements */
.login-pf .card-pf header::before,
.login-pf .card-pf header::after {
    display: none;
}

/* Form container */
.login-pf .card-pf form {
    padding: 10px 30px 25px;
    background: transparent;
}

/* Input field styling – warm light inputs */
.login-pf .form-control {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease-out;
    background: #FCF8ED;
    color: #3E2F1B;
    font-family: inherit;
}

.login-pf .form-control:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
    background: #FFFFFF;
}

.login-pf .form-control::placeholder {
    color: #A89672;
    font-weight: 400;
}

/* Button styling – gold gradient pill buttons */
.login-pf .btn-primary,
.login-pf input[type="submit"],
.login-pf input[name="login"] {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-out;
    width: 100%;
    margin-top: 16px;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    cursor: pointer;
}

.login-pf .btn-primary:hover,
.login-pf input[type="submit"]:hover,
.login-pf input[name="login"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35);
    filter: brightness(1.05);
}

.login-pf .btn-primary:active,
.login-pf input[type="submit"]:active,
.login-pf input[name="login"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Focus visible state for keyboard nav */
.login-pf .btn-primary:focus-visible,
.login-pf input[type="submit"]:focus-visible {
    outline: 2px solid #E8C547;
    outline-offset: 2px;
}

/* Hyperlinks – accent gold on warm background */
.login-pf a,
.login-pf a:link,
.login-pf a:visited {
    color: #B8860B;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-out;
}

.login-pf a:hover,
.login-pf a:focus {
    color: #D4AF37;
    text-decoration: underline;
}

.login-pf a:active {
    color: #8B6914;
}

/* Label styling */
.login-pf label {
    color: #3E2F1B;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 0.875rem;
}

/* Error message styling */
.login-pf .alert-error {
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.25);
    color: #d32f2f;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Success message styling */
.login-pf .alert-success {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #2e7d32;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Footer links – warm alt surface */
.login-pf .card-pf footer {
    background: #F5EDD6;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 20px 40px;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

.login-pf .card-pf footer a {
    color: #B8860B;
    text-decoration: none;
    transition: all 0.2s ease-out;
    font-weight: 500;
}

.login-pf .card-pf footer a:hover {
    color: #D4AF37;
    text-decoration: underline;
}

/* Remember me checkbox */
.login-pf .checkbox input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #D4AF37;
}

.login-pf .checkbox label {
    color: #6B5B3E;
}

/* Form group spacing */
.login-pf .form-group {
    margin-bottom: 12px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-pf .card-pf {
        margin: 15px;
        max-width: none;
        border-radius: 12px;
    }

    .login-pf .card-pf form {
        padding: 15px 20px 25px;
    }

    .login-pf .card-pf header {
        padding: 20px 20px 15px;
    }

    .login-pf .card-pf header h1 {
        font-size: 1.5rem;
    }

    .login-pf .card-pf footer {
        padding: 15px 20px;
    }

    .login-pf-page {
        padding: 5px;
    }

    .login-pf #kc-container {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
}

/* Brand consistency */
.login-pf #kc-header-wrapper {
    text-align: center;
}

/* Loading state for button */
.login-pf .btn-primary:disabled,
.login-pf input[type="submit"]:disabled,
.login-pf input[name="login"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
