*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

    header .logo {
        font-size: 1.125rem;
        font-weight: 600;
        color: #2563eb;
        letter-spacing: -0.01em;
    }

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 6px 20px rgba(0, 0, 0, 0.06);
    padding: 2.25rem 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.3rem;
}

.card-sub {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.125rem;
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
}

select {
    width: 100%;
}

.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        height: 42px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    line-height: 40px;
    padding-left: 0.875rem;
    padding-right: 2rem;
    color: #111827;
    font-size: 0.9375rem;
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--default.select2-container--focus
.select2-selection--single,
.select2-container--default.select2-container--open
.select2-selection--single {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.select2-container--default.select2-container--disabled
.select2-selection--single {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    max-width: 100%;
}

.select2-results__option {
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    white-space: normal;
    word-break: break-word;
}

.select2-container--default
.select2-results__option--highlighted.select2-results__option--selectable {
    background: #eff6ff;
    color: #1d4ed8;
}

.btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s, transform 0.1s;
}

    .btn:hover:not(:disabled) {
        background: #1d4ed8;
    }

    .btn:active:not(:disabled) {
        transform: scale(0.99);
    }

    .btn:disabled {
        background: #93c5fd;
        cursor: not-allowed;
    }

.spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    display: none;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status {
    margin-top: 1rem;
    padding: 0.6rem 0.875rem;
    border-radius: 7px;
    font-size: 0.8125rem;
    line-height: 1.4;
    display: none;
}

    .status.info {
        background: #eff6ff;
        color: #1d4ed8;
        display: block;
    }

    .status.error {
        background: #fef2f2;
        color: #dc2626;
        display: block;
    }

    .status.success {
        background: #f0fdf4;
        color: #15803d;
        display: block;
    }

footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 0.875rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}
