* {
    box-sizing: border-box;
}

:root {
    --primary: #155eef;
    --primary-hover: #0f4fd1;
    --text: #172033;
    --muted: #667085;
    --border: #dfe5ee;
    --background: #f4f7fb;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(21, 94, 239, 0.08), transparent 32%),
        var(--background);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 760px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(223, 229, 238, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.10);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #155eef, #004ee8);
    box-shadow: 0 12px 28px rgba(21, 94, 239, 0.28);
    font-size: 18px;
    font-weight: 800;
}

.auth-brand h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: 0.18s ease;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.11);
}

.auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 26px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.auth-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.auth-footer {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

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

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

@media (max-width: 640px) {
    .auth-page {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .auth-brand h1 {
        font-size: 25px;
    }
}

.form-error {
    color: #d92d20;
    font-size: 13px;
    line-height: 1.4;
}

.form-alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.form-alert-error {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.auth-card-small {
    max-width: 560px;
}

.verification-box {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8faff;
    text-align: center;
}

.verification-box p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.verification-box strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.test-verification {
    margin-top: 22px;
    text-align: center;
}

.test-verification p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-submit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.test-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px dashed #84adff;
    border-radius: 16px;
    background: #f5f8ff;
    text-align: center;
}

.test-code-box span {
    color: var(--muted);
    font-size: 13px;
}

.test-code-box strong {
    font-size: 28px;
    letter-spacing: 0.18em;
}

.test-code-box small {
    color: var(--muted);
    font-size: 12px;
}

.verification-code-input {
    text-align: center;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em;
}

.login-password-group {
    margin-top: 18px;
}

.dashboard-page {
    min-height: 100vh;
    padding: 30px;
}

.dashboard-card {
    max-width: 1100px;
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.08);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
}

.dashboard-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.logout-button {
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.logout-button:hover {
    background: #f5f7fa;
}

.dashboard-content {
    padding: 52px 40px;
}

.dashboard-eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-content h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.dashboard-description {
    margin: 14px 0 34px;
    color: var(--muted);
}

.dashboard-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-details > div {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #f8faff;
}

.dashboard-details span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-details strong {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .dashboard-page {
        padding: 12px;
    }

    .dashboard-card {
        min-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .dashboard-content {
        padding: 34px 20px;
    }

    .dashboard-content h1 {
        font-size: 29px;
    }

    .dashboard-details {
        grid-template-columns: 1fr;
    }
}
