body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--background-tint);
}

.auth-container {
    background: var(--menu-tint);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.auth-header {
    text-align: center;
    margin: 2rem;
}

.auth-header h1 {
    color: var(--text-tint);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: "Bagel Fat One", cursive;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--menu-tint);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--text-tint);
    border-bottom-color: var(--text-tint);
}

.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-tint);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--button-tint);
    color: var(--text-tint);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    background: var(--button-hover-tint);
}

.submit-btn:active {
    box-shadow: 0 2px 4px rgba(218, 165, 32, 0.25);
}

.oauth-section {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 1.25rem;
}

.oauth-divider {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.oauth-provider-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oauth-provider-button {
    width: 100%;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.oauth-provider-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.oauth-provider-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.oauth-provider-button-google {
    background: #ffffff;
}

.oauth-provider-button-microsoft {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.oauth-provider-icon {
    width: 1.375rem;
    height: 1.375rem;
    flex: 0 0 1.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oauth-provider-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oauth-provider-label {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
}

.oauth-error {
    margin-top: 0.85rem;
}

.oauth-status {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.user-info {
    display: none;
    text-align: center;
}

.user-info.active {
    display: block;
}

.user-info-card {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.user-info-card h2 {
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.user-email {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--gray-700);
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-logo {
    width: 10rem;
    object-fit: contain;
}

.eye-off-icon {
    display: none;
}

.clickable-text-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.875rem;
    cursor: pointer;
    text-align: center;
    padding: 0.25rem;
    transition: color 0.2s;
}


.clickable-text-link:hover {
    color: var(--text-tint);
}

.forgot-message {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.forgot-message.success {
    background: #e8f8e8;
    color: #2d7a2d;
}
