/* Login Page Styles */

/* Ensure no scrolling on the login page */
body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Fix background for login page specifically */
.visualization-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
    max-height: 95vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.login-card::-webkit-scrollbar {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--grey-light);
    font-size: 1rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1.25rem;
}

.btn-google:hover {
    border-color: #DB4437;
    color: #DB4437;
    background: rgba(219, 68, 55, 0.1);
}

.btn-instagram:hover {
    border-color: #E1306C;
    color: #E1306C;
    background: rgba(225, 48, 108, 0.1);
}

.btn-discord:hover {
    border-color: #5865F2;
    color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--grey-mid);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-mid);
    transition: var(--transition);
}

.form-input:focus+.input-icon {
    color: var(--gold);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--grey-light);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-container input {
    accent-color: var(--gold);
}

.forgot-link {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.signup-prompt {
    text-align: center;
    margin-top: 2rem;
    color: var(--grey-light);
    font-size: 0.95rem;
}

.signup-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.signup-link:hover {
    text-decoration: underline;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: var(--transition);
    z-index: 20;
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover {
    opacity: 1;
    color: var(--gold);
}


.back-btn:hover i {
    transform: translateX(-5px);
}

/* Responsive adjustments for small screens (e.g. iPhone 7) */
@media (max-width: 480px),
(max-height: 700px) {
    body {
        overflow-y: auto !important;
        height: auto !important;
    }

    .login-container {
        height: auto !important;
        min-height: 100dvh;
        padding: 1rem 0.5rem !important;
        align-items: center;
        padding-bottom: 40px !important;
    }

    .login-card {
        max-height: none !important;
        overflow-y: visible !important;
        margin: 20px 0 !important;
        padding: 1.5rem !important;
    }

    .login-logo {
        height: 40px !important;
        margin-bottom: 0.5rem !important;
    }

    .login-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.2rem !important;
    }

    .social-login {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .social-btn {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }

    .divider {
        margin-bottom: 1rem !important;
    }

    .form-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem !important;
        margin-bottom: 10px !important;
    }

    .input-icon {
        left: 0.8rem !important;
    }

    .form-options {
        margin-bottom: 15px !important;
    }

    .btn-submit {
        padding: 10px !important;
    }

    .signup-prompt {
        margin-top: 1rem !important;
    }
}