﻿/* =============================================================
   TMIS AUTH PAGES
   Responsibility:
   - Login
   - Forgot Password
   - Reset Password
   - Access Denied
   Dark-mode safe
   Standalone layout (no app chrome)
   ============================================================= */

/* =============================================================
   PAGE BACKGROUND
   ============================================================= */

.tmis-auth-page {
    min-height: 100vh;
    background: var(--tmis-app-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* =============================================================
   AUTH CARD
   ============================================================= */

.tmis-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--tmis-surface);
    border: 1px solid var(--tmis-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

html.dark-mode .tmis-auth-card {
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
}

/* =============================================================
   HEADER
   ============================================================= */

.tmis-auth-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--tmis-border);
    text-align: center;
}

    .tmis-auth-header img {
        max-height: 48px;
        margin-bottom: 0.75rem;
    }

    .tmis-auth-header h1,
    .tmis-auth-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--tmis-text-strong);
        margin: 0;
    }

    .tmis-auth-header p {
        font-size: 0.85rem;
        color: var(--tmis-text-muted);
        margin: 0.25rem 0 0;
    }

/* =============================================================
   BODY
   ============================================================= */

.tmis-auth-body {
    padding: 1.5rem;
}

    /* =============================================================
   FORM ELEMENTS
   ============================================================= */

    .tmis-auth-body label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--tmis-text-strong);
    }

    .tmis-auth-body .form-control {
        background: var(--tmis-surface);
        color: var(--tmis-text);
        border: 1px solid var(--tmis-border);
        border-radius: 0;
    }

        .tmis-auth-body .form-control:focus {
            border-color: var(--tmis-primary);
            box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
        }

/* =============================================================
   ACTIONS
   ============================================================= */

.tmis-auth-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .tmis-auth-actions .btn {
        width: 100%;
    }

/* =============================================================
   LINKS
   ============================================================= */

.tmis-auth-links {
    margin-top: 1rem;
    text-align: center;
}

    .tmis-auth-links a {
        font-size: 0.8rem;
        color: var(--tmis-primary);
        text-decoration: none;
    }

        .tmis-auth-links a:hover {
            text-decoration: underline;
