/*--------------------------*/
/*---- css-02-login.css ----*/
/*--------------------------*/

/* Auth pages (login, register, password reset) and the public ticket request.
   Theme on top of Bootstrap 4: uses the variables, background, card, form and
   button styles of css-03-admin.css, which must be loaded first.
   Sections:
   1. Page        3. Form              5. Media queries
   2. Card        4. Ticket request */

/*-----------------*/
/*---- 1. PAGE ----*/
/*-----------------*/

.login-page {
    min-height: 100vh;
    gap: 20px;
    padding: 32px 16px;
}

.login-footer {
    font-size: 12px;
    font-weight: 600;
    color: var(--admin-text-label);
}

/*-----------------*/
/*---- 2. CARD ----*/
/*-----------------*/

.admin-body .login-card {
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(79, 91, 213, 0.16) 0%, rgba(79, 91, 213, 0) 60%),
        linear-gradient(172deg, rgba(255, 255, 255, 0.85) 0%, rgba(241, 242, 252, 0.78) 71.429%);
}

.admin-body .login-card .card-body {
    gap: 24px;
    padding: 32px 32px 28px;
}

/* Decorative rings, top right (same as the admin page header) */
.login-card::before {
    content: "";
    position: absolute;
    top: -210px;
    right: -210px;
    width: 404px;
    height: 404px;
    background:
        url("../img/admin/ring-inner.svg") center / 260px 260px no-repeat,
        url("../img/admin/ring-middle.svg") center / 332px 332px no-repeat,
        url("../img/admin/ring-outer.svg") center / 404px 404px no-repeat;
    pointer-events: none;
}

.login-logo {
    position: relative;
    display: block;
    width: 168px;
    height: auto;
}

.login-heading {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--admin-text-primary);
}

.login-description {
    font-size: 14px;
    font-weight: 500;
    color: var(--admin-text-description);
}

/*-----------------*/
/*---- 3. FORM ----*/
/*-----------------*/

.login-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-body .admin-input-icon .form-control.login-input-action {
    padding-right: 44px;
}

.admin-body .login-toggle-password {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 4;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    color: var(--admin-text-secondary);
}

.admin-body .login-toggle-password:hover {
    background: rgba(79, 91, 213, 0.06);
    color: var(--admin-text-secondary);
}

.admin-body .login-toggle-password[aria-pressed="true"] {
    color: var(--admin-indigo);
}

.login-options {
    gap: 8px;
    font-size: 13px;
}

.admin-body a.login-link {
    font-weight: 600;
    color: var(--admin-indigo);
}

.admin-body a.login-link:hover {
    text-decoration: underline;
}

.admin-body .login-submit {
    height: 42px;
    margin-top: 6px;
}

.login-switch {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--admin-text-secondary);
}

.admin-body .login-card .alert-success {
    position: relative;
    margin-bottom: 0;
    padding: 10px 14px;
    border: 1px solid rgba(47, 158, 110, 0.25);
    border-radius: 10px;
    background: rgba(47, 158, 110, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-success);
}

/*---------------------------*/
/*---- 4. TICKET REQUEST ----*/
/*---------------------------*/

/* Public ticket request (welcome): the login card, wider for two-column fields */
.admin-body .login-card.ticket-request-card {
    max-width: 640px;
}

.ticket-request-top {
    position: relative;
    gap: 12px;
}

.ticket-request-account {
    font-size: 13px;
    font-weight: 500;
    color: var(--admin-text-secondary);
}

.admin-body .ticket-request-account .btn-link {
    padding: 0;
    border: 0;
    font-size: 13px;
    vertical-align: baseline;
}

.ticket-request-counter {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    color: var(--admin-text-label);
}

.admin-body .ticket-request-privacy .custom-control-label {
    line-height: 1.5;
}

/* ================================
         5. MEDIA QUERIES
   ================================ */

/* --- Small devices (≤575.98px) --- */
@media (max-width: 575.98px) {
    .admin-body .login-card .card-body {
        padding: 26px 20px 22px;
    }

    .login-title {
        font-size: 26px;
    }
}
