/* ========================================
   Home Page
   ======================================== */

.home-page {
    position: relative;
    padding-bottom: 100px;
}

.home-grid {
    margin-top: 10px;
}

/* ---------- Cards ---------- */

.home-card {
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius-lg);
    background: var(--rr-surface);
    transition: box-shadow var(--rr-transition), transform var(--rr-transition);
    overflow: hidden;
    height: 100%;
}

.home-card:hover {
    box-shadow: var(--rr-shadow-hover);
    transform: translateY(-1px);
}

.home-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---------- Typography ---------- */

.home-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--rr-text-strong);
    margin-bottom: 2px;
}

.home-subtitle {
    color: var(--rr-text-secondary);
    margin-bottom: 10px;
}

.home-card-label {
    color: var(--rr-text-secondary);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.home-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--rr-text-strong);
}

.home-card-text {
    color: var(--rr-text-secondary);
    line-height: 1.5;
}

.home-card-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--rr-text-strong);
    margin-top: 4px;
}

/* ---------- Helpers ---------- */

.home-card-clickable {
    cursor: pointer;
}

/* ---------- Login / Hero ---------- */

.home-login-card,
.home-hero {
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius-lg);
    background: var(--rr-surface);
    transition: box-shadow var(--rr-transition), transform var(--rr-transition);
}

.home-login-card:hover,
.home-hero:hover {
    box-shadow: var(--rr-shadow-hover);
    transform: translateY(-1px);
}

.home-login-card-content {
    padding: 18px;
}

/* ---------- Landing (Unauthenticated) ---------- */

.home-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: var(--rr-space-xl) var(--rr-space-md);
}

.home-landing-logo {
    height: 64px;
    margin-bottom: var(--rr-space-lg);
}

.home-landing-headline {
    font-weight: 800;
    color: var(--rr-text-strong);
    margin-bottom: var(--rr-space-md);
    max-width: 600px;
}

.home-landing-subline {
    color: var(--rr-text-secondary);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: var(--rr-space-lg);
}

.home-landing-cta {
    padding: 12px 32px !important;
    font-size: 1rem;
}

.home-error-text {
    color: var(--rr-error);
}

/* ---------- Overlay ---------- */

.home-overlay {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-text-modern {
    color: var(--rr-on-primary);
    font-weight: 700;
}
