/* ==========================================
   AUTH LAYOUT
========================================== */

.auth-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    /* align-items: center; */
    /* padding: 2rem; */
}

.auth-box {
    width: 100%;
    max-width: 380px;
}


/* ==========================================
   HEADER
========================================== */

.auth-brand {
    text-align: center;
    margin-bottom: 1rem;
    /* 2rem */
}

.auth-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    /*color: #1659e9;*/
}

.auth-subtitle {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.75;
}


/* ==========================================
   FORM
========================================== */

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-input {
    width: 100%;
    padding: 0.9rem 1rem;

    border: 1px solid #d8d8d8;
    border-radius: 12px;

    font-size: 1rem;
    line-height: 1.4;

    /* background: #ffffff; */
    background: transparent;
    color: #111111;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.auth-input:focus,
.auth-input:hover {
    outline: none;
    /* border-color: #007bff; */
    border-color: coral;
}

.auth-input::placeholder {
    color: #999;
}

.auth-subtitle,
.auth-row,
.auth-footer,
.auth-link {
    font-size: 1rem;
}


/* ==========================================
   BUTTON
========================================== */

.auth-submit {
    margin-top: 1rem;

    width: 100%;
    padding: 0.95rem;

    border: none;
    border-radius: 12px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    background: #1659e9;
    color: #ffffff;

    transition: opacity 0.15s ease;
}

.auth-submit:hover {
    opacity: 0.95;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #2563eb;
    color: #f97316;
    /* text-decoration: underline; */
}


/* ==========================================
   ERROR
========================================== */

.auth-error {
    margin-bottom: 1rem;

    padding: 0.85rem 1rem;

    border: 1px solid #f0b5b5;
    border-radius: 12px;

    font-size: 0.9rem;

    background: #fff4f4;
    color: #a30000;
}


/* ==========================================
   META
========================================== */

.auth-meta {
    margin-top: 1.5rem;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 0.9rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-divider {
    margin: 1.5rem 0;
    height: 1px;
    background: #e5e5e5;
}

.auth-footer {
    text-align: center;
    font-size: 0.95rem;
}


/* ==========================================
   LINKS
========================================== */

.auth-link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}


/* ==========================================
   DARK MODE
========================================== */

[data-theme="dark"] .auth-title,
[data-theme="dark"] .auth-subtitle,
[data-theme="dark"] .auth-footer,
[data-theme="dark"] .auth-row {
    color: #e8e8e8;
}

[data-theme="dark"] .auth-input {
    background: #1f1f1f;
    border-color: #333;
    color: #f5f5f5;
}

[data-theme="dark"] .auth-input::placeholder {
    color: #8f8f8f;
}

[data-theme="dark"] .auth-input:focus {
    border-color: #777;
}

[data-theme="dark"] .auth-submit {
    background: #f5f5f5;
    color: #111;
}

[data-theme="dark"] .auth-divider {
    background: #333;
}

[data-theme="dark"] .auth-error {
    background: #2f1717;
    border-color: #6f2929;
    color: #ffb5b5;
}