﻿:root {
    --color-primary: #0b6bcb;
    --color-primary-hover: #084d93;
    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-bg: #f1f5f9;
    --color-surface: #ffffff;
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;

}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-text-primary);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(11, 107, 203, 0.14), transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(255, 152, 0, 0.16), transparent 40%),
        linear-gradient(160deg, #f3f7ff 0%, #eef5ff 38%, #edf3f8 100%);
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 55px rgba(16, 35, 61, 0.14);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.auth-shell--single {
    max-width: 520px;
    grid-template-columns: 1fr;
}

.auth-panel {
    padding: 2.35rem 2.2rem;
    background: var(--color-surface);
}

.auth-shell--single .auth-panel {
    padding: 2.4rem 2rem;
}

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

.auth-brand h2 {
    margin: 0.95rem 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 700;
}

.auth-brand p {
    margin: 0;
    color: var(--color-text-secondary);
}

.auth-form {
    margin-top: 1.35rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field .form-label {
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: #2a3850;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6f7f97;
    pointer-events: none;
}

.input-with-icon .form-control {
    border: 1px solid var(--color-border);
    background: #f3f7fb;
    border-radius: 12px;
    height: 48px;
    padding-left: 2.55rem;
    color: var(--color-text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-with-icon .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.18);
    background: #ffffff;
}

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

.auth-row .form-check-label {
    color: var(--color-text-secondary);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.btn-auth-primary {
    width: 100%;
    border: 0;
    border-radius: 12px;
    height: 47px;
    background: linear-gradient(135deg, #0b6bcb 0%, #25a4ff 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(11, 107, 203, 0.25);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(11, 107, 203, 0.3);
}

.btn-auth-primary.is-loading {
    opacity: 0.92;
    cursor: wait;
}

.btn-auth-primary .spin {
    display: inline-block;
    animation: auth-spin 0.9s linear infinite;
}

@keyframes auth-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.auth-footer {
    margin-top: 1.15rem;
    font-size: 0.93rem;
    color: var(--color-text-secondary);
    text-align: center;
}

.text-danger.small {
    font-size: 0.8rem;
}

@media (max-width: 940px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 2rem 1.4rem;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 1rem;
    }

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

