*, *::before, *::after {
    box-sizing: border-box;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f3ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07),
                0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.auth-logo .logo{
    height: 48px;
}

.auth-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
    letter-spacing: -0.4px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.auth-input {
    height: 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0 0.875rem;
}

.auth-input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
    background: #ffffff;
    outline: none;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-link {
    color: #1a56db;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: #1e429f;
}

.form-check-input:checked {
    background-color: #1a56db;
    border-color: #1a56db;
}

.auth-btn {
    height: 44px;
    background: #1a56db;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: background 0.15s, transform 0.1s;
    cursor: pointer;
}

.auth-btn:hover {
    background: #1e429f;
    color: #ffffff;
}

.auth-btn:active {
    transform: scale(0.99);
}

/* ── Google / Social button ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    height: 44px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.auth-btn-social:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #111827;
}

/* ── Manage layout ── */
.manage-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.manage-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.manage-content {
    flex: 1;
    max-width: 520px;
}

.manage-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.manage-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.manage-nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.manage-nav-link.active {
    background: #eff6ff;
    color: #1a56db;
    font-weight: 500;
}

.manage-nav-link svg {
    flex-shrink: 0;
}

/* ── Manage page content ── */
.manage-page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.2px;
}

.manage-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.manage-field {
    margin-bottom: 1.125rem;
}

.manage-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.manage-alert {
    font-size: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.manage-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.manage-btn {
    margin-top: 0.5rem;
    padding: 0 1.25rem;
    height: 38px;
    font-size: 0.875rem;
    width: auto;
}

.manage-btn-outline {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.875rem;
    border: 1.5px solid #1a56db;
    border-radius: 8px;
    color: #1a56db;
    background: transparent;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.manage-btn-outline:hover {
    background: #eff6ff;
}

.manage-btn-danger {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.875rem;
    border: 1.5px solid #dc2626;
    border-radius: 8px;
    color: #dc2626;
    background: transparent;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
}

.manage-btn-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.manage-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    color: #1a56db;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

.manage-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.manage-badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.manage-badge-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.manage-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

/* Personal data cards */
.manage-data-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.manage-data-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    align-items: flex-start;
}

.manage-data-card-danger {
    border-color: #fecaca;
    background: #fff9f9;
}

.manage-data-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    flex-shrink: 0;
}

.manage-data-icon-danger {
    background: #fef2f2;
}

.manage-data-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.manage-data-title-danger {
    color: #dc2626;
}

.manage-data-desc {
    font-size: 0.8375rem;
    color: #6b7280;
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

/* ── Confirmation page icon ── */
.auth-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    margin-bottom: 0.5rem;
}

.alert-danger {
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1.5px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}