* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Google Sans", sans-serif;
    background: #f8f8f6;
    color: #313638;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

:root {
    --primary: #f06543;
    --secondary: #f09d51;
    --light: #e8e9eb;
    --offwhite: #e0dfd5;
    --dark: #313638;
    --white: #ffffff;
    --gray: #4a5056;
    --light-gray: #f8f8f6;
}

.login-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--offwhite);
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.logo span {
    color: var(--primary);
}
.logo i {
    color: var(--secondary);
    margin-right: 4px;
}

.login-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--light-gray);
    padding: 0.3rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--gray);
}
.tab-btn.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.tab-btn:hover:not(.active) {
    color: var(--dark);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--offwhite);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: var(--white);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 101, 67, 0.1);
}

.form-group .input-with-btn {
    display: flex;
    gap: 0.5rem;
}
.form-group .input-with-btn input {
    flex: 1;
}
.form-group .input-with-btn button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 10px;
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.form-group .input-with-btn button:hover {
    background: #e08a3d;
}
.form-group .input-with-btn button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.5rem;
}
.btn-login:hover {
    background: #d95a3b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(240, 101, 67, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.85rem;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--offwhite);
}

.social-login {
    display: flex;
    gap: 1rem;
}
.social-btn {
    flex: 1;
    padding: 0.7rem;
    border: 1.5px solid var(--offwhite);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: 0.2s;
    color: var(--dark);
}
.social-btn:hover {
    border-color: var(--primary);
    background: var(--light-gray);
}
.social-btn.google i {
    color: #ea4335;
    font-size: 1.2rem;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}
.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.signup-link a:hover {
    text-decoration: underline;
}

.forgot-link {
    text-align: right;
    font-size: 0.85rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}
.forgot-link a {
    color: var(--gray);
    text-decoration: none;
}
.forgot-link a:hover {
    color: var(--primary);
}

.otp-timer {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
    text-align: center;
}

.snackbar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background: #313638;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.snackbar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.snackbar.success { background: #155724; }
.snackbar.error { background: #721c24; }

.snackbar .close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.2rem;
}
.snackbar .close:hover { color: #fff; }

.snackbar .action {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}
.snackbar .action:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    .social-login {
        flex-direction: column;
    }
    .form-group .input-with-btn {
        flex-direction: column;
    }
}
