/* ============================================
   AUTH PAGES - MOBILE FIRST RESPONSIVE
   Pre-login pages: login, password reset, etc.
   ============================================ */

/* Base Typography - Mobile First */
html {
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body.background-body {
    background:
        linear-gradient(rgba(15,32,39,0.75), rgba(44,83,100,0.75)),
        url('../img/landing/background_1920.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Rubik', sans-serif;
}

/* Auth Wrapper - Mobile First */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Auth Card - Mobile First */
.auth-card {
    background: #fff;
    border-radius: 1rem;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    animation: fadeIn 0.6s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Logo */
.logo-img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

/* Typography */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, label {
    font-family: 'Rubik', sans-serif;
}

/* Navigation Pills */
.nav-pills {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: #666;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Form Floating Labels - Mobile Optimized */
.form-floating {
    margin-bottom: 1rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.form-floating > .form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    background-color: #f8f9fa;
    color: #212529;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    background-color: #fff;
    color: #212529;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Autofill styling */
.form-floating input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f8f9fa inset;
    -webkit-text-fill-color: #212529;
}

.form-floating input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* Buttons - Mobile First with touch targets */
.btn {
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 48px; /* Touch target size */
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #218838, #1aa179);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5568d3, #6a3f8c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Microsoft Login Button */
.microsoft-login-btn {
    background: linear-gradient(135deg, #0078D4, #2B88D8);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
    min-height: 48px;
}

.microsoft-login-btn:hover,
.microsoft-login-btn:focus {
    background: linear-gradient(135deg, #005a9e, #1f5fa0);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.microsoft-login-btn i {
    font-size: 1.5rem;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 0.75rem;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Alerts - Mobile Friendly */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.875rem 1rem;
}

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

/* ============================================
   TABLET AND DESKTOP ENHANCEMENTS
   ============================================ */
@media (min-width: 576px) {
    html {
        font-size: 15px;
    }

    .auth-card {
        padding: 2rem;
        border-radius: 1rem;
    }

    .logo-img {
        max-width: 220px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .auth-wrapper {
        padding: 2rem;
    }
}

/* ============================================
   PASSWORD VISIBILITY TOGGLE
   ============================================ */
.input-group-text {
    cursor: pointer;
    background: transparent;
    border-left: none;
    transition: color 0.2s ease;
}

.input-group .form-control {
    border-right: none;
}

.input-group-text:hover {
    color: #667eea;
}

/* ============================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific adjustments */
    .btn {
        min-height: 48px;
    }

    .nav-pills .nav-link {
        min-height: 44px;
    }

    .form-control {
        min-height: 48px;
    }
}

