﻿/* Shell */
.signin-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px 16px 60px;
    align-content: center;
}

.signin-wrap {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Brand */
.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.brand-mark img {
    width: 150px;
    height: 90px;
    object-fit: contain;
    object-position: center;
}

.brand-word {
    font-weight: 700;
    font-size: 26px;
    letter-spacing: .2px;
}

/* Headings */
.eyebrow {
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    color: var(--muted);
}

h1 {
    margin: 6px 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.sub {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Form */
.field {
    position: relative;
    margin-top: 12px;
}

.input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    font-size: 14px;
    outline: 0;
    transition: .2s;
    padding: 0 12px 0 40px;
    box-sizing: border-box;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: var(--focus);
}

.icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.icon svg {
    width: 18px;
    height: 18px;
}

.adornment {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.grade {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #10b981;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, .35);
}

.hint {
    font-size: 12px;
    color: #6b7280;
    padding: 12px 0 0;
}

.hint a,
.signin-link,
.below a {
    color: var(--brand);
    text-decoration: none;
    font-size: 14px
}

.hint a:hover,
.signin-link:hover,
.below a:hover {
    text-decoration: underline;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.btn-primary-wide {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.btn-primary-wide:hover {
    background: var(--brand-700);
}

.btn-primary-wide:active {
    transform: translateY(1px);
}

.below {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 14px;
}

.below.providers {
    margin-top: 18px;
    margin-bottom: 8px;
}

footer.signin-footer {
    margin-top: 80px;
    padding-top: 24px;
    color: #6b7280;
    font-size: 12px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

footer.signin-footer a {
    color: inherit;
    text-decoration: none;
}

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

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

.alert-icon {
    padding-right: 10px;
}

.alert-danger {
    background-color: rgba(var(--danger), 0.1);
    color: rgb(var(--danger));
    border: 1px solid rgb(var(--danger));
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-info {
    background-color: rgba(var(--info), 0.1);
    color: rgb(var(--info));
    border: 1px solid rgb(var(--info));
    border-radius: 10px;
    padding: 15px 20px;
}

.select-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    font-size: 14px;
    outline: 0;
    transition: .2s;
    padding: 0 12px 0 8px;
    box-sizing: border-box;
}

.select-input:focus {
    border-color: var(--brand);
    box-shadow: var(--focus);
}

.gap {
    min-height: 10px;
    display: block;
}

.code-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #ffffff;
}

.code-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.code-input.filled {
    border-color: #4F46E5;
    background-color: #f9fafb;
}

.code-input::-webkit-inner-spin-button,
.code-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code-input[type=number] {
    -moz-appearance: textfield;
}

.code-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-container {
    min-height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-danger {
    color: rgb(var(--danger));
    font-weight: 400;
}

.small {
    font-size: 12px;
    line-height: 1.4;
    display: block;
    margin: 4px 0;
}

/* Smooth error alert animation */
.alert-danger {
    animation: slideDown 0.2s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
