/* SourceUS Login Theme — matches sourceus.net branding */

/* Background — dark with subtle gold gradient */
.login-pf body {
    background: linear-gradient(180deg, #333333 0%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Gold decorative line across the top of the page */
.login-pf body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #e6b319, transparent);
    z-index: 9999;
}

/* Header / logo area */
#kc-header {
    padding-top: 40px;
    padding-bottom: 10px;
}

#kc-header-wrapper {
    font-size: 32px;
    font-weight: 700;
    color: #e6b319;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(230, 179, 25, 0.3);
}

/* Logo above header text */
#kc-header-wrapper::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background: url('../img/favicon.ico') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 20px rgba(230, 179, 25, 0.4));
}

/* Login card */
#kc-content-wrapper {
    overflow: visible;
}

.card-pf {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 179, 25, 0.15);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(230, 179, 25, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 40px !important;
    max-width: 440px;
    margin: 0 auto;
}

/* "Sign in to" title */
#kc-page-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-align: center;
}

/* Form labels — catch all label styles */
.login-pf .control-label,
.login-pf label,
.login-pf .pf-v5-c-form__label,
.login-pf .pf-v5-c-form__label-text,
.login-pf .pf-c-form__label,
.login-pf .pf-c-form__label-text,
#kc-form label,
#kc-form-login label,
#kc-login label,
.login-pf span.pf-v5-c-form__label-text {
    color: #e6b319 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

/* All text inside the form card */
.card-pf,
.card-pf * {
    color: #ffffff;
}

.card-pf label,
.card-pf .pf-v5-c-form__label-text {
    color: #e6b319 !important;
}

/* Password input group wrapper + toggle button */
.pf-c-input-group,
.pf-v5-c-input-group {
    background: transparent !important;
    border: none !important;
}

.pf-c-button.pf-m-control,
.pf-v5-c-button.pf-m-control {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    color: #e6b319 !important;
}

.pf-c-button.pf-m-control:hover,
.pf-v5-c-button.pf-m-control:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Input fields — dark glass style */
input, input[type="text"], input[type="password"], input[type="email"],
.login-pf input, .login-pf input[type="text"], .login-pf input[type="password"], .login-pf input[type="email"],
.login-pf .pf-v5-c-form-control,
.card-pf input, .card-pf input[type="text"], .card-pf input[type="password"],
#kc-form input, #kc-form-login input {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid rgba(230, 179, 25, 0.4) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    color-scheme: dark;
}

/* Fix browser autofill overriding dark styles (Firefox + Chrome) */
.login-pf input:-webkit-autofill,
.login-pf input:-webkit-autofill:hover,
.login-pf input:-webkit-autofill:focus,
.login-pf input:-moz-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 30, 1) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px rgba(30, 30, 30, 1) inset !important;
    color: #ffffff !important;
    background-color: rgba(30, 30, 30, 1) !important;
}

.login-pf input[type="text"]:focus,
.login-pf input[type="password"]:focus,
.login-pf input[type="email"]:focus {
    border-color: #e6b319 !important;
    border-bottom-color: #e6b319 !important;
    outline: none !important;
    box-shadow: 0 0 20px rgba(230, 179, 25, 0.15) !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.login-pf input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Primary button — gold gradient */
input[type="submit"],
#kc-login .btn-primary,
.btn-primary,
.login-pf .btn-primary,
.login-pf .pf-v5-c-button.pf-m-primary {
    background: linear-gradient(135deg, #e6b319, #c99a10) !important;
    border: none !important;
    border-radius: 9999px !important;
    color: #000000 !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 14px 32px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 179, 25, 0.3);
    width: 100%;
    margin-top: 10px;
}

input[type="submit"]:hover,
#kc-login .btn-primary:hover,
.btn-primary:hover,
.login-pf .btn-primary:hover,
.login-pf .pf-v5-c-button.pf-m-primary:hover {
    background: linear-gradient(135deg, #f0c040, #e6b319) !important;
    box-shadow: 0 6px 25px rgba(230, 179, 25, 0.5);
    transform: translateY(-1px);
}

.login-pf .btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(230, 179, 25, 0.3);
}

/* Links */
.login-pf a {
    color: #e6b319;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-pf a:hover {
    color: #f0c040;
    text-decoration: none;
}

/* "Forgot password?" and other secondary links */
#kc-form-options,
#kc-registration {
    text-align: center;
    margin-top: 20px;
}

#kc-form-options a,
#kc-registration a {
    color: #e6b319;
    font-size: 13px;
    letter-spacing: 0.5px;
}

#kc-form-options a:hover,
#kc-registration a:hover {
    color: #e6b319;
}

/* Alert messages */
.alert-error,
.pf-v5-c-alert.pf-m-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #ff6b7a;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    color: #5fd67b;
}

/* Remember me checkbox */
.login-pf .checkbox label,
.login-pf .pf-v5-c-check__label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Dividers / separators */
#kc-form-buttons {
    margin-top: 10px;
}

/* Social login buttons */
#kc-social-providers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#kc-social-providers .zocial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.2s ease;
}

#kc-social-providers .zocial:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #e6b319;
}

/* Footer text */
.login-pf-page .card-pf .login-pf-header + .login-pf-footer {
    color: rgba(255, 255, 255, 0.4);
}
