/* PT. TENSA KARYA — Login & Daftar */

body.auth-page {
    background: var(--color-bg);
}

.auth-shell {
    padding: 1.25rem 0 3rem;
    min-height: 50vh;
}

.auth-breadcrumb {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.auth-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.auth-breadcrumb a:hover {
    color: var(--color-primary);
}

.auth-breadcrumb__sep {
    margin: 0 0.35rem;
    opacity: 0.55;
    user-select: none;
}

.auth-breadcrumb__current {
    color: var(--color-text);
    font-weight: 600;
}

.auth-layout {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 480px) {
    .auth-card {
        padding: 2rem 1.85rem 1.75rem;
    }
}

.auth-card__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.auth-card__lead {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.auth-alert {
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
}

.auth-alert__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-alert li {
    margin-bottom: 0.2rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.auth-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.18);
}

.auth-input.is-invalid {
    border-color: #dc2626;
}

.auth-error {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #b91c1c;
}

.auth-success {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #166534;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    font-size: 0.875rem;
    color: var(--color-text);
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding-top: 0.25rem;
    border-top: 1px solid var(--color-border);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-hint {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.navbar__auth-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.navbar__user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
/* Dropdown user menu */
.navbar__dropdown {
    position: relative;
}
.navbar__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: .25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem 0;
    font-family: inherit;
    font-size: inherit;
}
.navbar__dropdown-chevron {
    color: var(--color-text);
    transition: transform .2s ease;
}
.navbar__dropdown-trigger[aria-expanded="true"] .navbar__dropdown-chevron {
    transform: rotate(180deg);
}
.navbar__dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: .5rem;
    z-index: 100;
}
.navbar__dropdown-menu.open {
    display: block;
}
.navbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .75rem;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    border-radius: .5rem;
    transition: background .15s ease;
}
.navbar__dropdown-item:hover {
    background: #f3f4f6;
}
.navbar__dropdown-item--danger {
    color: #dc2626;
}
.navbar__dropdown-item--danger:hover {
    background: #fef2f2;
}
.navbar__dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: .25rem .5rem;
}

.navbar__logout-form {
    margin: 0;
    display: inline;
}
