@charset "UTF-8";

/* Auth/Profile route owner. Extracted from legacy LMS CSS in P15.175. */

/* Auth/Profile route CSS */

/* ============================================================
   Auth page UI polish (P12.005 / P12.005-fix2)
   ============================================================ */

.ts-page-shell:has(form input[name="mode"]) .ts-page-header {
    margin-bottom: 0;
}

.ts-page-shell:has(form input[name="mode"]) .ts-page-header {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 8px;
}

.ts-page-shell:has(form input[name="mode"]) .ts-page-title,
.ts-page-shell:has(form input[name="mode"]) .ts-page-subtitle {
    width: 100%;
    text-align: left;
}

.ts-page-shell:has(form input[name="mode"]) .ts-page-subtitle {
    max-width: 62ch;
}

.ts-page-shell:has(form input[name="mode"]) .ts-panel.ts-form--narrow {
    justify-self: center;
    width: min(100%, 620px);
}

.ts-page-shell:has(form input[name="mode"]) .ts-panel.ts-form--narrow .ts-panel-body {
    display: grid;
    gap: var(--spacing-md);
}

.ts-page-shell:has(form input[name="mode"]) .ts-form-actions,
.ts-page-shell:has(form input[name="mode"]) .ts-action-bar {
    margin-top: 2px;
}

.ts-page-shell:has(form input[name="mode"]) .ts-action-bar {
    align-items: flex-start;
}

.ts-page-shell:has(form input[name="mode"]) .ts-action-group {
    display: grid;
    justify-items: flex-start;
    gap: 6px;
}

.ts-panel form:has(input[name="mode"]) {
    display: grid;
    gap: 14px;
}

.ts-panel form:has(input[name="mode"]) .form-group,
.ts-panel form:has(input[name="mode"]) .mb-3 {
    margin-bottom: 0;
}

.ts-panel form:has(input[name="mode"]) .form-label {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.ts-panel form:has(input[name="mode"]) .form-control {
    min-height: 44px;
}

.ts-panel form:has(input[name="mode"]) .btn,
.ts-panel form:has(input[name="mode"]) button[type="submit"] {
    min-height: 44px;
    font-weight: 600;
}

.ts-panel form:has(input[name="mode"]) a[href*="mode=forgot"],
.ts-panel form:has(input[name="mode"]) a[href*="mode=resend_activation"] {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    color: var(--color-primary-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ts-panel form:has(input[name="mode"]) a[href*="mode=forgot"]:hover,
.ts-panel form:has(input[name="mode"]) a[href*="mode=resend_activation"]:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
.ts-page-shell:has(form input[name="mode"]) .ts-page-header {
        padding-bottom: var(--spacing-sm);
    }

.ts-page-shell:has(form input[name="mode"]) .ts-panel.ts-form--narrow {
        justify-self: stretch;
        width: 100%;
    }

.ts-panel form:has(input[name="mode"]) {
        gap: 12px;
    }
}

@media (max-width: 576px) {
.ts-page-shell:has(form input[name="mode"]) .ts-tabs {
        margin-bottom: var(--spacing-sm);
    }

.ts-page-shell:has(form input[name="mode"]) .ts-action-group {
        width: 100%;
    }

.ts-panel form:has(input[name="mode"]) {
        gap: 10px;
    }

.ts-panel form:has(input[name="mode"]) .btn,
    .ts-panel form:has(input[name="mode"]) button[type="submit"] {
        width: 100%;
    }
}

/* ============================================================
   Guest profile UI polish (presentation-only)
   ============================================================ */

.ts-page-shell.ts-profile-guest-shell .ts-page-header {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 8px;
    margin-bottom: 0;
}

.ts-page-shell.ts-profile-guest-shell .ts-page-title,
.ts-page-shell.ts-profile-guest-shell .ts-page-subtitle {
    width: 100%;
    text-align: left;
}

.ts-page-shell.ts-profile-guest-shell .ts-panel.ts-form--narrow {
    justify-self: center;
    width: min(100%, 620px);
}

.ts-profile-guest-card .ts-panel-body {
    display: grid;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.ts-profile-guest-alert.ts-alert {
    display: grid;
    justify-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: var(--spacing-lg);
    text-align: center;
}

.ts-profile-guest-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-warning-light) 72%, #ffffff);
    color: var(--color-warning-text);
    font-size: 1.4rem;
}

.ts-profile-guest-alert__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
}

.ts-profile-guest-alert__text {
    max-width: 42ch;
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.ts-profile-guest-alert .ts-btn {
    min-height: 44px;
    margin-top: var(--spacing-xs);
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
.ts-page-shell.ts-profile-guest-shell .ts-page-header {
        padding-bottom: var(--spacing-sm);
    }

.ts-page-shell.ts-profile-guest-shell .ts-panel.ts-form--narrow {
        justify-self: stretch;
        width: 100%;
    }
}
