/* Auth screens only. Beats global app.css input/button/heading overrides. */

.ee-auth-body .hidden {
    display: none !important;
}

.ee-auth-body .animate-spin {
    animation: ee-auth-spin 0.7s linear infinite;
}

@keyframes ee-auth-spin {
    to { transform: rotate(360deg); }
}

.ee-auth-body {
    min-height: 100vh;
    margin: 0;
    background-color: #0a2463;
    background-image:
        linear-gradient(90deg, rgba(8, 28, 78, 0.86) 0%, rgba(8, 28, 78, 0.62) 48%, rgba(8, 28, 78, 0.38) 100%),
        url("../images/log_reg_bg.png");
    background-size: cover;
    background-position: right 28%;
    background-repeat: no-repeat;
}

.ee-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
}

.ee-auth-panel {
    width: 100%;
    max-width: 26.5rem;
}

.ee-auth-brand {
    text-align: center;
    margin-bottom: 0.85rem;
}

.ee-auth-brand img {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.ee-auth-body .ee-auth-brand h1,
.ee-auth-body h1.ee-auth-title {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ee-auth-body .ee-auth-brand p,
.ee-auth-body p.ee-auth-lead {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.925rem;
    line-height: 1.5;
}

.ee-auth-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--ee-radius, 5px);
    padding: 1.25rem 1.25rem 1.15rem;
    box-shadow: 0 18px 40px rgba(8, 20, 50, 0.28);
}

.ee-auth-card:hover {
    transform: none;
    box-shadow: 0 18px 40px rgba(8, 20, 50, 0.28);
    border-color: rgba(226, 232, 240, 1);
}

.ee-auth-alert {
    display: none;
    margin-bottom: 0.9rem;
    border-radius: var(--ee-radius, 5px);
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.ee-auth-alert.is-visible {
    display: block;
}

.ee-auth-alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.ee-auth-alert-ok {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.ee-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: var(--ee-control-height, 42px);
    height: auto !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid #d7dee8 !important;
    border-radius: var(--ee-radius, 5px) !important;
    background: #fff !important;
    color: #1f2937 !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    line-height: 1.3 !important;
    text-decoration: none;
    box-sizing: border-box;
}

.ee-auth-google:hover,
.ee-auth-google:focus-visible {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
    text-decoration: none;
}

.ee-auth-google svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.ee-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.9rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ee-auth-divider::before,
.ee-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.ee-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ee-auth-field label {
    display: block;
    margin: 0 0 0.4rem;
    color: #334155;
    font-size: 0.82rem !important;
    font-weight: 600;
    line-height: 1.3;
}

.ee-auth-body .ee-auth-field input[type="text"],
.ee-auth-body .ee-auth-field input[type="email"],
.ee-auth-body .ee-auth-field input[type="password"],
.ee-auth-body .ee-auth-field input[type="tel"] {
    width: 100%;
    height: var(--ee-control-height, 42px) !important;
    min-height: var(--ee-control-height, 42px) !important;
    padding: 0.55rem 0.9rem !important;
    border: 1px solid #cbd5e1;
    border-radius: var(--ee-radius, 5px) !important;
    background: #fff;
    color: #0f172a;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.ee-auth-body .ee-auth-field input:focus,
.ee-auth-body .ee-auth-field input:focus-visible {
    outline: none;
    border-color: var(--ee-accent);
    box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.18);
}

.ee-auth-body .ee-auth-field.is-invalid input {
    border-color: #ef4444;
}

.ee-auth-control {
    position: relative;
}

.ee-auth-body .ee-auth-control input[type="password"],
.ee-auth-body .ee-auth-control input[type="text"] {
    padding-right: 2.7rem !important;
}

.ee-auth-body button.ee-auth-toggle,
.ee-auth-body .ee-auth-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.6rem;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 var(--ee-radius, 5px) var(--ee-radius, 5px) 0 !important;
    background: transparent !important;
    color: #94a3b8;
    box-shadow: none !important;
    cursor: pointer;
}

.ee-auth-body button.ee-auth-toggle:hover {
    color: #475569;
    transform: none;
}

.ee-auth-hint {
    margin: 0.4rem 0 0;
    color: #dc2626;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ee-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ee-auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ee-auth-body .ee-auth-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem !important;
    min-height: 1rem !important;
    margin-top: 0.15rem;
    padding: 0 !important;
    accent-color: #4f46e5;
}

.ee-auth-link {
    color: var(--ee-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.ee-auth-link:hover {
    color: var(--ee-accent-hover);
}

.ee-auth-body button.ee-auth-submit,
.ee-auth-body .ee-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: var(--ee-control-height, 42px) !important;
    height: auto !important;
    padding: 0.7rem 1rem !important;
    border: 0 !important;
    border-radius: var(--ee-radius, 5px) !important;
    background: var(--ee-accent) !important;
    color: #fff !important;
    font-size: 0.925rem !important;
    font-weight: 650;
    line-height: 1.3 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.ee-auth-body button.ee-auth-submit:hover,
.ee-auth-body .ee-auth-submit:hover {
    background: var(--ee-accent-hover) !important;
    transform: none;
}

.ee-auth-body button.ee-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ee-auth-foot {
    margin-top: 1.1rem;
    padding-top: 1.05rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.ee-auth-body .ee-auth-foot p,
.ee-auth-body p.ee-auth-foot-text {
    margin: 0;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ee-auth-meta {
    margin-top: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.ee-auth-meta a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.ee-auth-meta a:hover {
    text-decoration: none;
}

.ee-auth-meta span {
    margin: 0 0.45rem;
    color: rgba(255, 255, 255, 0.4);
}

.ee-auth-note {
    margin: 0 0 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--ee-radius, 5px);
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.8rem;
    line-height: 1.5;
}

.ee-auth-note ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.ee-auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.ee-auth-actions .ee-auth-submit,
.ee-auth-actions .ee-auth-google {
    width: auto;
    min-width: 8.5rem;
    text-decoration: none;
}

@media (max-width: 480px) {
    .ee-auth {
        padding: 1.25rem 0.75rem;
    }

    .ee-auth-card {
        padding: 1.25rem 1rem 1.1rem;
    }

    .ee-auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
