* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #111827;
}

.auth-page,
.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
    }

.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
}

    .form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px;
    color: #374151;
    font-size: 14px;
}

.btn-primary-full,
.btn-action,
.btn-logout {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary-full {
    width: 100%;
    height: 44px;
    background: #2563eb;
    color: #ffffff;
}

    .btn-primary-full:hover,
    .btn-action:hover {
        background: #1d4ed8;
    }

.btn-action {
    height: 44px;
    padding: 0 18px;
    background: #2563eb;
    color: #ffffff;
}

    .btn-action:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.btn-logout {
    height: 38px;
    padding: 0 14px;
    background: #eef2ff;
    color: #1e40af;
}

.panel-card {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

    .panel-header h1 {
        margin: 0 0 8px;
        font-size: 28px;
    }

    .panel-header p {
        margin: 0;
        color: #6b7280;
    }

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.action-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f9fafb;
}

    .action-card h2 {
        margin: 0 0 10px;
        font-size: 20px;
    }

    .action-card p {
        margin: 0;
        color: #6b7280;
        line-height: 1.5;
    }

.validation-summary,
.field-validation {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
}

    .modal-backdrop-custom.show {
        display: flex;
    }

.modal-card-custom {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.modal-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
}

    .modal-icon.success {
        background: #dcfce7;
        color: #16a34a;
    }

    .modal-icon.error {
        background: #fee2e2;
        color: #dc2626;
    }

.modal-card-custom h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.modal-card-custom p {
    margin: 0 0 22px;
    color: #4b5563;
    word-break: break-word;
}

@media (max-width: 760px) {
    .auth-page,
    .page-shell {
        padding: 18px;
        align-items: flex-start;
    }

    .panel-header {
        flex-direction: column;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .panel-card,
    .auth-card {
        padding: 22px;
    }
}
