/* Hide Navbar on Auth Pages */
.hide-navbar .navbar {
    display: none !important;
}

.hide-navbar body {
    padding-top: 0 !important;
}

.auth-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.hide-navbar .auth-page {
    min-height: 100vh;
}

.back-to-home {
    margin-bottom: 24px;
    animation: authFadeIn 0.6s ease-out;
}

.back-to-home a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-home a:hover {
    color: #ff0000;
}

.auth-container {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: authFadeIn 0.6s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.auth-header p {
    color: #aaa;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #eee;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: color 0.3s;
}

.auth-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px 12px 48px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff0000;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.auth-form input:focus + i {
    color: #ff0000;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}

.remember-me input {
    width: auto;
    cursor: pointer;
}

.forgot-password {
    color: #ff0000;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.btn-primary {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    color: #555;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-footer {
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.auth-footer a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
}

/* Signup specific */
.terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.terms-label input {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.terms-label span {
    display: inline;
}

.terms-label a {
    color: #ff0000;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 40px 15px;
        justify-content: flex-start; /* Start from top on mobile */
    }
    
    .auth-container {
        padding: 30px 20px;
        border-radius: 20px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .social-auth {
        grid-template-columns: 1fr;
    }
    
    .auth-btn {
        padding: 12px;
    }
}
