/* 
   =============================================
   Login - Mentor Exclusive Premium UI 
   =============================================
*/

.mentor-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    min-height: 60vh;
    animation: fadeIn 0.6s ease-out;
}

.mentor-login-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mentor-login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.mentor-login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(178, 34, 52, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.mentor-login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.mentor-login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red-500), var(--red-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(178, 34, 52, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mentor-login-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text-base); /* Adapts to light/dark if variables are set */
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mentor-login-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

.mentor-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(178, 34, 52, 0.1);
    color: var(--red-600);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(178, 34, 52, 0.2);
}

.mentor-login-form {
    position: relative;
    z-index: 1;
}

.mentor-input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.mentor-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mentor-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.app-content[data-route="/login"] .mentor-input {
    background: var(--bg-surface);
}

.mentor-input:focus {
    outline: none;
    border-color: var(--red-500);
    box-shadow: 0 0 0 4px rgba(178, 34, 52, 0.1), inset 0 2px 4px rgba(0,0,0,0.02);
    background: #fff;
}

.mentor-input::placeholder {
    color: rgba(17, 24, 39, 0.6);
}

.mentor-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(178, 34, 52, 0.25);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.mentor-submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mentor-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(178, 34, 52, 0.35);
}

.mentor-submit-btn:hover::after {
    opacity: 1;
}

.mentor-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(178, 34, 52, 0.2);
}

.mentor-no-access {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mentor-no-access a {
    color: var(--red-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.mentor-no-access a:hover {
    color: var(--red-800);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make sure the login layout looks good on dark mode if variables exist */
@media (prefers-color-scheme: dark) {
    .mentor-login-card {
        background: rgba(30, 41, 59, 0.4);
        border-color: rgba(255, 255, 255, 0.05);
    }
    .mentor-input {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    .mentor-input:focus {
        background: rgba(0, 0, 0, 0.4);
        border-color: var(--red-500);
    }
    .mentor-login-title {
        color: white;
    }
}
