/* ============================================
   LOGIN.CSS — Login & Register Page
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-box .brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-box .brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.login-box .brand h1 span {
    color: #e94560;
}

.login-box .brand p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

/* Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.login-tabs button {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f8fafc;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
}

.login-tabs button.active {
    background: #1a1a2e;
    color: #fff;
}

.login-tabs button:hover:not(.active) {
    background: #e2e8f0;
}

/* Forms */
.login-box .form-group {
    margin-bottom: 16px;
}

.login-box .form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #374151;
}

.login-box .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.login-box .form-group input:focus {
    outline: none;
    border-color: #e94560;
}

.login-box .form-group input::placeholder {
    color: #9ca3af;
}

.login-box .btn-primary {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.login-box .btn-primary:hover {
    background: #d63851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.login-box .text-muted {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 16px;
}

.login-box .text-muted a {
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
}

.login-box .text-muted a:hover {
    text-decoration: underline;
}

.login-box .form-row {
    display: flex;
    gap: 12px;
}

.login-box .form-row .form-group {
    flex: 1;
}

.login-box .password-requirements {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    padding-left: 0;
}

.login-box .password-requirements li {
    list-style: none;
    padding: 2px 0;
}

.login-box .password-requirements li.valid {
    color: #22c55e;
}

.login-box .password-requirements li.valid::before {
    content: "✅ ";
}

.login-box .password-requirements li.invalid::before {
    content: "• ";
}

.login-box .hidden {
    display: none;
}

.login-box .alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.login-box .alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-box .alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Mobile */
@media (max-width: 480px) {
    .login-box {
        padding: 24px 16px;
        margin: 16px;
    }
    
    .login-box .brand h1 {
        font-size: 22px;
    }
    
    .login-box .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .login-tabs button {
        font-size: 13px;
        padding: 10px;
    }
}