/* ========== Profile Layout ========== */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.profile-column {
    margin-top: 1.0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-card-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.profile-meta {
    font-size: 0.95rem;
    color: var(--dark-grey);
    margin-bottom: 0.25rem;
}

.profile-empty {
    font-size: 0.9rem;
    color: var(--dark-grey);
}


.profile-card hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.25rem 0;
}

/* Reuse auth-form layout but tighten it a bit inside profile card */
.profile-card .auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Labels inside profile card */
.profile-card .auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-grey);
}

/* Inputs inside profile card */
.profile-card .auth-form input[type="text"],
.profile-card .auth-form input[type="password"] {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.profile-card .auth-form input[type="text"]:focus,
.profile-card .auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
    background-color: #f9fafb;
}

/* Buttons for account actions */
.profile-card .auth-form .btn {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--primary-blue);
    color: var(--white);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.profile-card .auth-form .btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.profile-card .auth-form .btn:active {
    box-shadow: none;
    transform: translateY(0);
}

.profile-signout-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    width: 100%;
}

.profile-signout-button:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}
