/**
 * EtiaKorp Additional Styles
 * Supplementary styling for special components
 */

/* ========================================
   Brand Signature
   ======================================== */
.etiakorp-brand-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
}

.etiakorp-brand-footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03b5c3, transparent);
    margin: 0 auto 1rem;
}

/* ========================================
   Password Strength Indicator
   ======================================== */
.password-strength {
    height: 4px;
    background: var(--etiakorp-gray);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-weak {
    width: 33%;
    background: #f44336;
}

.password-strength-medium {
    width: 66%;
    background: #ff9800;
}

.password-strength-strong {
    width: 100%;
    background: #4caf50;
}

/* ========================================
   Two-Factor Authentication Badge
   ======================================== */
.kc-2fa-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--etiakorp-cyan);
    color: var(--etiakorp-white);
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Code Input (for OTP/2FA)
   ======================================== */
.kc-otp-input {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.kc-otp-input input {
    width: 3rem !important;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border: 2px solid var(--etiakorp-gray);
    border-radius: 8px;
}

.kc-otp-input input:focus {
    border-color: var(--etiakorp-cyan);
}

/* ========================================
   Required Field Indicator
   ======================================== */
.required::after {
    content: ' *';
    color: #f44336;
}

/* ========================================
   Form Validation States
   ======================================== */
input.error,
input.invalid {
    border-color: #f44336 !important;
}

input.success,
input.valid {
    border-color: #4caf50 !important;
}

.field-error {
    display: block;
    margin-top: 0.5rem;
    color: #f44336;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
}

.field-success {
    display: block;
    margin-top: 0.5rem;
    color: #4caf50;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
}

/* ========================================
   Language Selector
   ======================================== */
#kc-locale {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#kc-locale-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--etiakorp-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

#kc-locale-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
}

#kc-locale ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    background: var(--etiakorp-white);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

#kc-locale li {
    padding: 0;
}

#kc-locale a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--etiakorp-navy);
    font-family: var(--font-secondary);
    transition: background 0.2s ease;
}

#kc-locale a:hover {
    background: rgba(3, 181, 195, 0.1);
    text-decoration: none;
}

/* ========================================
   Session Warning
   ======================================== */
.kc-session-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: #e65100;
}

/* ========================================
   Identity Provider Icons
   ======================================== */
.kc-social-icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.kc-social-icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   Animated Background Pattern (Subtle)
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(3, 181, 195, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(3, 181, 195, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(3, 181, 195, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(3, 181, 195, 0.05) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
    opacity: 0.3;
    z-index: -1;
}

/* ========================================
   Loading Overlay
   ======================================== */
.kc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 28, 56, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.kc-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--etiakorp-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
    }

    #kc-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    button,
    .btn {
        display: none;
    }
}
