/* Project note: X2unoWebApp.Web/wwwroot/app.css is part of X2unoWebApp; see README.md for project topology and developer workflow. */
:root {
    --x2-bg-start: #151a29;
    --x2-bg-end: #293765;
    --x2-surface: rgba(49, 61, 105, 0.82);
    --x2-surface-strong: rgba(56, 68, 113, 0.92);
    --x2-border: rgba(139, 157, 214, 0.28);
    --x2-text: #ffffff;
    --x2-muted: #c7d4ff;
    --x2-primary: #7ca2ff;
    --x2-primary-hover: #91b1ff;
    --x2-purple: #8f2ca5;
}

html, body {
    min-height: 100%;
    font-family: Inter, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--x2-text);
    background: linear-gradient(115deg, var(--x2-bg-start) 0%, #1b2238 42%, var(--x2-bg-end) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 22px;
    background: #463d56;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--x2-purple), #7a2e9d);
    z-index: 10;
}

a, .btn-link {
    color: var(--x2-muted);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.75rem 1.1rem;
}

.btn-primary {
    color: #071127;
    background-color: var(--x2-primary);
    border-color: var(--x2-primary);
}

.btn-primary:hover, .btn-primary:focus {
    color: #071127;
    background-color: var(--x2-primary-hover);
    border-color: var(--x2-primary-hover);
}

.btn-secondary {
    color: var(--x2-text);
    background-color: rgba(69, 82, 130, 0.85);
    border-color: rgba(139, 157, 214, 0.38);
}

.btn-secondary:hover, .btn-secondary:focus {
    color: var(--x2-text);
    background-color: rgba(82, 96, 149, 0.95);
    border-color: rgba(161, 177, 232, 0.55);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #202a4b, 0 0 0 0.25rem var(--x2-primary);
}

.content {
    padding-top: 2.35rem;
}

h1:focus {
    outline: none;
}

.information-shell {
    width: min(100%, 1026px);
    margin: 0 auto;
    padding-top: 1.35rem;
}

.information-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img {
    max-width: 38px;
    max-height: 38px;
}

.information-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.information-header p {
    margin: 0.25rem 0 0;
    color: var(--x2-muted);
    font-size: 1.05rem;
}

.information-card, .stripe-card {
    min-height: 267px;
    padding: 1.55rem 1.55rem 1rem;
    border: 1px solid var(--x2-border);
    border-radius: 17px;
    background: var(--x2-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 55px rgba(5, 9, 24, 0.16);
}

.card-title {
    margin-bottom: 10px;
}

.information-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;

}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e52160;
}

.validation-message {
    color: #ff8cad;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.form-control, .form-check-input {
    background-color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640.98px) {
    .content {
        padding-top: 1.25rem;
    }

    .information-actions {
        flex-direction: column-reverse;
    }

    .information-actions .btn {
        width: 100%;
    }
}

/*.auth-page {
    min-height: calc(100vh - 4.7rem);
    display: grid;
    place-items: start center;
    padding: 3rem 1rem;
    color: var(--x2-text);
    background-color: var(--x2-bg-start);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' viewBox='0 0 96 48'%3E%3Cg fill='none' stroke='%237ca2ff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M-24 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M-16 24a16 16 0 0 1 32 0'/%3E%3Cpath d='M-8 24a8 8 0 0 1 16 0'/%3E%3Cpath d='M24 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M32 24a16 16 0 0 1 32 0'/%3E%3Cpath d='M40 24a8 8 0 0 1 16 0'/%3E%3Cpath d='M72 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M80 24a16 16 0 0 1 32 0'/%3E%3Cpath d='M88 24a8 8 0 0 1 16 0'/%3E%3Cpath d='M0 48a24 24 0 0 1 48 0'/%3E%3Cpath d='M8 48a16 16 0 0 1 32 0'/%3E%3Cpath d='M16 48a8 8 0 0 1 16 0'/%3E%3Cpath d='M48 48a24 24 0 0 1 48 0'/%3E%3Cpath d='M56 48a16 16 0 0 1 32 0'/%3E%3Cpath d='M64 48a8 8 0 0 1 16 0'/%3E%3C/g%3E%3Cg fill='none' stroke='%238f2ca5' stroke-opacity='.38' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M-24 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M24 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M72 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M0 48a24 24 0 0 1 48 0'/%3E%3Cpath d='M48 48a24 24 0 0 1 48 0'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(21, 26, 41, 0.96), rgba(41, 55, 101, 0.94));
    background-size: 96px 48px, auto;
    background-position: 0 0, 0 0;
    border-radius: 18px;
}*/

.auth-card {
    width: min(100%, 560px);
    color: #ffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(115deg, var(--x2-bg-start) 0%, #1b2238 42%, var(--x2-bg-end) 100%);
}

.auth-card .btn-link {
    color: #315fbd;
}

.auth-card .validation-message {
    color: #b42318;
}
