.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 40px;
    position: relative;
    animation: authCardSlideIn 0.5s ease-out;
}

@keyframes authCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.auth-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form.hidden {
    display: none;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-group input:focus {
    border-color: rgba(74, 158, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.password-toggle.visible {
    color: #4a9eff;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #4a9eff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #3a8eef;
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    text-transform: lowercase;
}

.sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
}

.sso-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sso-button:active {
    transform: translateY(0);
}

.sso-button .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sso-button.google:hover {
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #a0a0a0;
    font-size: 14px;
}

.error-message {
    display: none;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 8px;
    color: #ff9999;
    font-size: 14px;
    text-align: center;
    animation: errorSlideIn 0.3s ease-out;
}

.error-message.active {
    display: block;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #4a9eff;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .sso-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .auth-submit {
        font-size: 14px;
    }
}
