﻿body {
    background-color: var(--theme-background);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--theme-text-primary);
}

.container-scroller {
    min-height: 100vh;
}

/* Brand Logo Header */
.brand-logo-container {
    background: var(--theme-gradient);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px var(--theme-shadow);
    color: var(--theme-surface);
}

.brand-logo-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo-img {
    flex-shrink: 0;
}

    .brand-logo-img img {
        max-height: 70px;
        width: auto;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }

.brand-title-container {
    flex-grow: 1;
}

.kannada-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--theme-surface);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.english-title {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    color: var(--theme-surface);
}

/* Login Form Container */
.auth-form-transparent {
    background: var(--theme-surface);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--theme-border);
    position: relative;
    
}

.head_title {
    padding:10px;
    color: var(--theme-surface);
}

.login-header-background {
    background: var(--theme-gradient);
    border-radius: 12px 12px 0 0;
    padding: 25px 20px 20px;
    margin: -2.5rem -2.5rem 25px -2.5rem;
    position: relative;
    overflow: hidden;
}
.login-title {
    color: var(--theme-surface);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

    .login-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 2px;
        left: 50px;
    }

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        color: var(--theme-primary-dark);
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }



.form-control {
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--theme-text-primary);
    background-color: var(--theme-surface);
    transition: all 0.3s ease;
}

    .form-control:focus {
        box-shadow: none;
        background-color: var(--theme-surface);
    }

    .form-control::placeholder {
        color: var(--theme-text-secondary);
        opacity: 0.7;
    }

/* Captcha Section */
.captcha-container {
    background: var(--theme-background);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--theme-border);
}

.captcha-image {
    border-radius: 8px;
    border: 2px solid var(--theme-primary);
    padding: 0.5rem;
    background: var(--theme-surface);
}

.captcha-refresh-btn {
    background: var(--theme-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--theme-surface);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .captcha-refresh-btn:hover {
        transform: rotate(45deg);
        box-shadow: 0 4px 12px var(--theme-shadow);
    }

/* Buttons */
.btn-primary-gradient {
    background: var(--theme-gradient);
    border: none;
    color: var(--theme-surface);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--theme-shadow);
    cursor: pointer;
}

    .btn-primary-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--theme-shadow);
        color: var(--theme-surface);
    }

.btn-success-gradient {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    border: none;
    color: var(--theme-surface);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
    cursor: pointer;
}

    .btn-success-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
        color: var(--theme-surface);
    }

/* Forgot Password Link */
.forgot-password-link {
    color: var(--theme-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .forgot-password-link:hover {
        color: var(--theme-primary-dark);
        text-decoration: underline;
    }

/* OTP Section */
.otp-container {
    background: var(--theme-background);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--theme-border);
}

.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-primary-dark);
    transition: all 0.3s ease;
}

    .otp-input:focus {
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 0.25rem var(--theme-primary-light);
        transform: translateY(-2px);
    }

/* Webcam Section */
.webcam-container {
    background: var(--theme-background);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--theme-border);
}

#webcam {
    border-radius: 12px;
    border: 3px solid var(--theme-primary);
    margin-bottom: 1rem;
    background: var(--theme-surface);
}

#imgCapture {
    border-radius: 12px;
    border: 3px solid var(--theme-primary);
    margin-bottom: 1rem;
    max-width: 100%;
}

.webcam-btn {
    background: var(--theme-gradient);
    color: var(--theme-surface);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .webcam-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px var(--theme-shadow);
    }

    .webcam-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Alert Panel */
.alert-panel {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--theme-surface);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

/* Footer */
.site-footer {
    background: var(--theme-gradient);
    color: var(--theme-surface);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-form-transparent {
        padding: 2rem;
    }

    .brand-logo-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .brand-logo-img img {
        max-height: 60px;
    }

    .kannada-title {
        font-size: 1.3rem;
    }

    .english-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-form-transparent {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .btn-primary-gradient,
    .btn-success-gradient {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .auth-form-transparent {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .brand-logo-container {
        padding: 1rem;
        border-radius: 12px;
    }

    .kannada-title {
        font-size: 1.1rem;
    }

    .english-title {
        font-size: 0.9rem;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .login-title {
        font-size: 1.4rem;
    }

}

/* Login Container Layout */
.login-container {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.login-left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--theme-surface);
}

.login-right-section {
    background: var(--theme-background);
    padding: 2rem;
    overflow-y: auto;
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .login-left-section {
        padding: 1.5rem;
    }

    .login-right-section {
        padding: 1.5rem;
    }
}

/* Right Panel Container */
.login-right-panel-container {
    height: 100%;
    padding: 0;
}

.right-panel-scrollable {
    height: 100%;
    overflow-y: auto;
}

