/* Standalone magic-link + subscription management portal.
   Layered on top of app.css (fonts, .grey-box/.white-box, brand colors already
   defined there) — this file only handles this page's own layout and polish. */

.portal-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    background: #fff;
}

.portal-logo {
    display: block;
    text-align: center;
    margin-bottom: 48px;
}

.portal-logo svg {
    width: 110px;
    height: auto;
}

.portal-heading {
    font-family: 'Söhne-Buch', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.15;
    color: #2f116a;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.portal-subheading {
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #6b6b8f;
    text-align: center;
    margin: 0 0 36px;
}

.portal-card {
    animation: portal-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portal-card + .portal-card {
    margin-top: 36px;
}

@keyframes portal-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-card .account-h4 {
    color: #2f116a;
    margin-bottom: 8px;
}

.portal-card p {
    font-family: 'Söhne-Buch', sans-serif;
    color: #4d4d6a;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.portal-field-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-field-row select,
.portal-field-row input[type="email"] {
    flex: 1;
    min-width: 180px;
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 15px;
    color: #241953;
    padding: 12px 14px;
    border: 1px solid #e0e0f0;
    border-radius: 10px;
    background: #fff;
    margin:0px;
}

.portal-field-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23241953' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.portal-field-row select:focus,
.portal-field-row input[type="email"]:focus {
    outline: none;
    border-color: #606dff;
}

.portal-button {
    display: inline-block;
    font-family: 'Söhne-Kräftig', 'Söhne-Buch', sans-serif;
    font-size: 15px;
    color: #fff;
    background: #606dff;
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease-out;
}

.portal-button:hover {
    background: #4a58f0;
    color: #fff;
}

.portal-button.secondary {
    background: transparent;
    color: #606dff;
    border: 1px solid #606dff;
}

.portal-button.secondary:hover {
    background: #f2f1ff;
}

.portal-button[disabled] {
    background: #d8d8ea;
    cursor: not-allowed;
}

.portal-notice {
    background: #f2f1ff;
    padding:20px;
    /* border-left: 3px solid #606dff; */
}

.portal-legacy-warning {
    background: #fff5f4;
    border-left: 3px solid #ef655a;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 14px;
    color: #7a3a35;
    margin: 16px 0;
}

.portal-error {
    color: #ef655a;
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 14px;
    margin-top: 12px;
}

.portal-small-note {
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 13px;
    color: #9d9d9d;
    margin-top: 8px;
}

.portal-footer {
    max-width: 560px;
    margin: 56px auto 0;
    padding: 28px 24px 40px;
    border-top: 1px solid #f0f0f8;
    text-align: center;
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #9d9d9d;
}

.portal-footer a {
    color: #6b6b8f;
    text-decoration: underline;
}

.portal-empty-state {
    text-align: center;
    padding: 20px 0;
}

.portal-empty-state img {
    width: 120px;
    margin-bottom: 20px;
}

.portal-label {
    font-family: 'Söhne-Buch', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9d9d9d;
    margin-bottom: 4px;
}

.portal-value {
    font-family: 'Söhne-Kräftig', 'Söhne-Buch', sans-serif;
    font-size: 18px;
    color: #241953;
}
