* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef2f7 100%
        );

    color: #172033;
}

a {
    color: inherit;
}

.portal-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

.portal-container {
    width: 100%;
    max-width: 940px;
}

.portal-header {
    max-width: 620px;

    margin: 0 auto 34px;

    text-align: center;
}

.portal-header h1 {
    margin: 0 0 8px;

    font-size: 38px;
    line-height: 1;

    letter-spacing: -1px;
}

.portal-tagline {
    margin: 0 0 32px;

    color: #667085;

    font-size: 15px;
    line-height: 1.5;
}

.portal-header h2 {
    margin: 0 0 8px;

    font-size: 25px;
}

.portal-intro {
    margin: 0;

    color: #667085;

    font-size: 14px;
}

.portal-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.portal-card {
    display: flex;
    flex-direction: column;

    min-height: 360px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #e4e9f0;
    border-radius: 18px;

    box-shadow:
        0 18px 45px
        rgba(15, 23, 42, 0.07);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.portal-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 22px 55px
        rgba(15, 23, 42, 0.11);
}

.portal-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 12px;

    background: #eef4ff;
    color: #315ca8;

    font-size: 18px;
    font-weight: 800;
}

.portal-card h3 {
    margin: 0 0 10px;

    font-size: 21px;
}

.portal-card p {
    margin: 0 0 28px;

    color: #667085;

    font-size: 14px;
    line-height: 1.6;
}

.portal-primary,
.portal-secondary {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.portal-primary {
    margin-top: auto;

    background: #172033;
    color: #ffffff;
}

.portal-primary:hover {
    background: #25324a;
}

.portal-secondary {
    margin-top: 10px;

    border: 1px solid #d0d5dd;

    background: #ffffff;
    color: #344054;
}

.portal-secondary:hover {
    background: #f9fafb;
    border-color: #98a2b3;
}

.portal-footer {
    margin-top: 30px;

    text-align: center;

    color: #98a2b3;

    font-size: 12px;
}

.portal-footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .portal-page {
        padding: 28px 16px;
    }

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

    .portal-card {
        min-height: auto;
    }

    .portal-header h1 {
        font-size: 32px;
    }
}

/*
|--------------------------------------------------------------------------
| Global Toast Notifications
|--------------------------------------------------------------------------
*/

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: grid;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    animation: toast-slide-in 0.25s ease forwards;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.toast-message {
    padding-top: 2px;
    color: #344054;
    font-size: 14px;
    line-height: 1.45;
}

.toast-error {
    border-left: 4px solid #d92d20;
}

.toast-error .toast-icon {
    background: #fef3f2;
    color: #b42318;
}

.toast-success {
    border-left: 4px solid #12b76a;
}

.toast-success .toast-icon {
    background: #ecfdf3;
    color: #067647;
}

.toast-warning {
    border-left: 4px solid #f79009;
}

.toast-warning .toast-icon {
    background: #fffaeb;
    color: #b54708;
}

.toast-info {
    border-left: 4px solid #2e90fa;
}

.toast-info .toast-icon {
    background: #eff8ff;
    color: #175cd3;
}

.toast-close {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.toast-close:hover {
    color: #344054;
}

.toast.toast-hide {
    animation: toast-slide-out 0.2s ease forwards;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media (max-width: 520px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
