/* public/frontend/css/oauth2_error.css */

.oauth2-error {
    max-width: 620px;
    margin: 40px auto;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
}

div.oauth2-error__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.oauth2-error__icon span {
    font-size: 28px;
    line-height: 1;
}

.oauth2-error h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
}

p.oauth2-error__subtitle {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #6b7280;
}

.oauth2-error p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.oauth2-error__email {
    font-weight: 600;
    color: #111827;
}

.oauth2-error__hint {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.oauth2-error__actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oauth2-error__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.oauth2-error__btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.oauth2-error__btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.oauth2-error__btn--danger {
    background: #ffffff;
    border-color: #ef4444;
    color: #b91c1c;
}

.oauth2-error__btn--danger:hover {
    background: #fef2f2;
}

.oauth2-error__btn--ghost {
    background: transparent;
    border-color: #d1d5db;
    color: #4b5563;
}

.oauth2-error__btn--ghost:hover {
    background: #f3f4f6;
}

@media (max-width: 600px) {
    .oauth2-error {
        margin: 20px 12px;
        padding: 18px 18px;
    }

    .oauth2-error__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .oauth2-error__btn {
        width: 100%;
        justify-content: center;
    }
}


.oauth_error {
    background-image: url("bundles/contaocore/images/error.svg") !important;
}