
:root {
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --secondary-gradient: linear-gradient(135deg, #212529 0%, #343a40 100%);
    --glass-bg: rgba(33, 37, 41, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --footer-height: 120px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: var(--secondary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.login-container {
    min-height: calc(100vh - var(--footer-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex: 1;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

.login-form-section {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.login-hero-section {
    position: relative;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.1) 0%, rgba(102, 16, 242, 0.1) 100%),
    url('https://images.unsplash.com/photo-1677442136019-21780ecad995?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2832&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(102, 16, 242, 0.3) 50%, rgba(220, 53, 69, 0.2) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 400px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    background-color: #000000; /* Solid black background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    /* Two shadows: inner black glow, outer very subtle transparent white glow */
    box-shadow: 0 0 40px 20px rgba(0, 0, 0, 0.9), /* Increased spread and blur for blacker, further glow */
    0 0 60px 24px rgba(255, 255, 255, 0.08); /* Outer subtle transparent white glow */
}

.hero-logo i {
    font-size: 3rem;
    color: #fff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.brand-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background-color: #000000; /* Solid black background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    /* Two shadows: inner black glow, outer very subtle transparent white glow */
    box-shadow: 0 0 30px 16px rgba(0, 0, 0, 0.9), /* Increased spread and blur for blacker, further glow */
    0 0 40px 16px rgba(255, 255, 255, 0.08); /* Outer subtle transparent white glow */
}

.brand-logo i {
    font-size: 2rem;
    color: #fff;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #e9ecef;
    margin-bottom: .5rem;
}

.brand-subtitle {
    color: #adb5bd;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #e9ecef;
    font-weight: 500;
    margin-bottom: .5rem;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: .875rem 1rem;
    color: #e9ecef;
    font-size: 1rem;
    transition: all .3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #0d6efd;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, 0.15);
    color: #e9ecef;
}

.form-control::placeholder {
    color: rgba(173, 181, 189, 0.7);
}

.invalid-feedback {
    display: block;
    font-size: .875rem;
    color: #dc3545;
}

/* Custom styling for the password toggle button within an input group */
.input-group-text.password-toggle {
    background-color: rgba(255, 255, 255, 0.05); /* Match form-control background */
    border-color: rgba(255, 255, 255, 0.1);    /* Match form-control border */
    border-left: none; /* Remove left border to merge with input */
    cursor: pointer;
    padding: .875rem 1rem; /* Match input padding */
}

/* Ensure the focus state also matches for a cohesive look */
.input-group:focus-within .input-group-text.password-toggle {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, 0.15);
}

.btn-login {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.form-check-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    color: #adb5bd;
    font-size: .9rem;
    cursor: pointer;
}

.forgot-password {
    color: #0dcaf0;
    text-decoration: none;
    font-size: .9rem;
}

.forgot-password:hover {
    color: #31d2f2;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #6c757d;
    font-size: .9rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    flex: 1;
    padding: .875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e9ecef;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 500;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.signup-link {
    text-align: center;
    margin-top: 2rem;
    color: #adb5bd;
}

.signup-link a {
    color: #0dcaf0;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    color: #31d2f2;
    text-decoration: underline;
}

footer {
    margin-top: auto;
}

@media (max-width: 992px) {
    .login-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .login-hero-section {
        order: -1;
        min-height: 300px;
    }
    .login-form-section {
        padding: 2rem 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .brand-title {
        font-size: 1.75rem;
    }
    .login-container {
        min-height: calc(100vh - 140px);
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: .5rem;
        min-height: calc(100vh - 160px);
    }
    .login-wrapper {
        border-radius: 16px;
    }
    .login-form-section {
        padding: 2rem 1rem;
    }
    .brand-section {
        margin-bottom: 2rem;
    }
    .social-login {
        flex-direction: column;
    }
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    .hero-logo i {
        font-size: 2.5rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .login-options {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .login-hero-section {
        min-height: 250px;
        padding: 1rem;
    }
    .login-form-section {
        padding: 1.5rem .75rem;
    }
    .brand-logo {
        width: 60px;
        height: 60px;
    }
    .brand-logo i {
        font-size: 1.5rem;
    }
    .brand-title {
        font-size: 1.5rem;
    }
}