/* Ticketa — Login Page (2FA) styles
 * Prefix: tlp- (Ticketa Login Page)
 */

.ticketa-login-main {
    min-height: calc(100vh - var(--header-height, 80px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at top, rgba(232,119,34,.08) 0%, transparent 60%),
        linear-gradient(180deg, #1a1815 0%, #100e0b 100%);
}

#ticketa-login-root {
    width: 100%;
    max-width: 460px;
}

.tlp {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tlp__card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    color: #f5f1ea;
    font-family: var(--font-body, system-ui, sans-serif);
    position: relative;
}

/* Brand */
.tlp__brand {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.tlp__brand-mark {
    font-family: var(--font-display, var(--font-body));
    font-weight: 800;
    letter-spacing: .15em;
    font-size: 1.1rem;
    color: #e87722;
}

/* Header */
.tlp__head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.tlp__head-icon {
    font-size: 40px;
    color: #e87722;
    display: block;
    margin: 0 auto .65rem;
}
.tlp__head h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    color: #fff;
    line-height: 1.2;
}
.tlp__head p {
    color: rgba(255,255,255,.65);
    font-size: .92rem;
    margin: 0;
    line-height: 1.5;
}
.tlp__email-display {
    margin-top: .35rem !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem !important;
}

/* Form */
.tlp__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tlp__field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.tlp__field-label {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.78);
}
.tlp__field input {
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: 10px;
    padding: .85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.tlp__field input:focus {
    outline: none;
    border-color: #e87722;
    background: rgba(255,255,255,.07);
    box-shadow: 0 0 0 4px rgba(232,119,34,.15);
}
.tlp__field-code {
    text-align: center !important;
    font-size: 1.6rem !important;
    letter-spacing: .45rem !important;
    font-weight: 700;
    font-family: ui-monospace, SF Mono, Menlo, monospace !important;
    padding: .9rem !important;
}

/* Buttons */
.tlp__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .9rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    transition: background .15s, transform .12s, border-color .15s, box-shadow .15s;
    font-family: inherit;
    width: 100%;
}
.tlp__btn:disabled { opacity: .55; cursor: not-allowed; }
.tlp__btn--primary {
    background: #e87722;
    color: #fff;
    border-color: #e87722;
    box-shadow: 0 6px 20px rgba(232,119,34,.35);
}
.tlp__btn--primary:hover:not(:disabled) {
    background: #ff8c33;
    border-color: #ff8c33;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(232,119,34,.45);
}
.tlp__btn--primary:active:not(:disabled) { transform: translateY(0); }

/* Links */
.tlp__resend-row {
    text-align: center;
    margin-top: .35rem;
}
.tlp__link {
    background: none;
    border: 0;
    padding: .35rem .5rem;
    color: #e87722;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.tlp__link:hover:not(:disabled) { color: #ff8c33; text-decoration: underline; text-underline-offset: 4px; }
.tlp__link:disabled { color: rgba(255,255,255,.4); cursor: not-allowed; }
.tlp__link--muted {
    color: rgba(255,255,255,.55);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.tlp__link--muted:hover:not(:disabled) { color: rgba(255,255,255,.85); }
.tlp__link strong { color: #fff; font-weight: 700; }
.tlp__link-icon { font-size: .85em; }

/* Error */
.tlp__error {
    color: #ff8a7a;
    background: rgba(231,76,60,.1);
    border: 1px solid rgba(231,76,60,.3);
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: .88rem;
    margin: 0;
}

/* Fineprint */
.tlp__fineprint {
    color: rgba(255,255,255,.45);
    font-size: .78rem;
    text-align: center;
    margin: .5rem 0 0;
    line-height: 1.6;
}

/* Spam-folder notice on code screen */
.tlp__spam-notice {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    background: rgba(232,119,34,.08);
    border: 1px solid rgba(232,119,34,.25);
    border-radius: 10px;
    padding: .7rem .85rem;
    color: rgba(255,255,255,.82);
    font-size: .85rem;
    line-height: 1.55;
    margin-bottom: .5rem;
}
.tlp__spam-notice i {
    color: #e87722;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Success / redirect view */
.tlp__success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: #2ecc71;
}
.tlp__success-icon svg { width: 100%; height: 100%; }
.tlp__ring {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: tlp-ring .55s ease-out forwards;
}
.tlp__check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: tlp-check .45s .35s ease-out forwards;
}
@keyframes tlp-ring  { to { stroke-dashoffset: 0; } }
@keyframes tlp-check { to { stroke-dashoffset: 0; } }

/* Mobile */
@media (max-width: 540px) {
    .ticketa-login-main { padding: 1rem .75rem; }
    .tlp__card { padding: 1.75rem 1.25rem 1.5rem; }
    .tlp__head h1 { font-size: 1.35rem; }
    .tlp__field-code { font-size: 1.3rem !important; letter-spacing: .35rem !important; }
}
