/* Tuition Auth & Forms Engine - Redesigned SaaS Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --tafe-primary: #2563eb;
    --tafe-primary-hover: #1d4ed8;
    --tafe-text-main: #111827;
    --tafe-text-muted: #6b7280;
    --tafe-bg-white: #ffffff;
    --tafe-border: #e5e7eb;
    --tafe-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tafe-radius: 12px;
}

.tafe-auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 32px 0;
}

.tafe-auth-container h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--tafe-text-main);
    text-align: center;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.tafe-auth-container p {
    color: var(--tafe-text-muted);
    text-align: center;
    font-size: 15px;
    margin-bottom: 32px;
}

.tafe-form-group {
    margin-bottom: 24px;
}

.tafe-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tafe-text-main);
}

.tafe-form-group input[type="email"],
.tafe-form-group input[type="text"],
.tafe-form-group input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--tafe-border);
    border-radius: var(--tafe-radius);
    font-size: 15px;
    box-sizing: border-box;
    background: #f9fafb;
    transition: all 0.2s;
}

.tafe-form-group input:focus {
    outline: none;
    border-color: var(--tafe-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.tafe-btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    border: none;
    border-radius: var(--tafe-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tafe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.tafe-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--tafe-text-muted);
    font-size: 14px;
    margin: 32px 0;
}

.tafe-divider::before,
.tafe-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--tafe-border);
}

.tafe-divider span {
    padding: 0 16px;
    font-weight: 600;
}

/* Profile Dropdown Redesign */
.tafe-profile-dropdown-widget {
    position: relative;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.tafe-profile-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--tafe-border), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tafe-profile-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--tafe-primary), var(--tafe-shadow);
}

.tafe-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tafe-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--tafe-shadow);
    padding: 20px 0;
    display: none;
    z-index: 9999;
    border: 1px solid var(--tafe-border);
    animation: tafeFadeSlide 0.3s ease;
}

.tafe-dropdown-menu.active {
    display: block;
}

@keyframes tafeFadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tafe-dropdown-header {
    padding: 0 24px 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tafe-dropdown-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--tafe-border);
}

.tafe-dropdown-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tafe-text-main);
}

.tafe-dropdown-user-email {
    font-size: 13px;
    color: var(--tafe-text-muted);
}

.tafe-dropdown-role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 99px;
    background: #f1f5f9;
    margin-top: 6px;
}

.tafe-dropdown-divider {
    border: 0;
    border-top: 1px solid var(--tafe-border);
    opacity: 0.6;
    margin: 0;
}

.tafe-dropdown-links {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.tafe-dropdown-link {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.tafe-dropdown-link:hover {
    background: #f9fafb;
    color: var(--tafe-primary);
    padding-left: 20px;
}