/* ============================================================
   Dr. Sergio Weiss · Portal Pacientes
   ============================================================ */


/* ============================================================
   LOGIN
   ============================================================ */

.login-wrapper {
    min-height: calc(100dvh - 68px);
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, #f0f4f8 100%);
    padding: 3rem 0;
}
.login-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    padding: 2.5rem;
    width: 100%; max-width: 400px; margin: 0 auto;
}
.login-brand { text-align: center; margin-bottom: 2rem; }
.login-brand .mark {
    width: 52px; height: 52px; background: var(--brand);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem;
    box-shadow: 0 4px 16px var(--brand-shadow);
}
.login-brand .mark i { font-size: 1.5rem; color: #fff; }
.login-brand h1 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: .25rem; }
.login-brand p { font-size: .875rem; color: var(--text-muted); margin: 0; }

.form-label { font-weight: 500; font-size: .875rem; color: var(--text-darker); }
.form-control {
    border-radius: 9px; border-color: #d1d5db;
    font-size: .95rem; padding: .7rem .9rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-shadow-soft);
}
.form-hint { font-size: .78rem; color: #94a3b8; margin-top: .3rem; }

/* PORTAL DASHBOARD */

.portal-header {
    background: linear-gradient(135deg, var(--text-main), #1e293b);
    padding: 2.5rem 0 2rem;
    color: #fff;
    position: relative; overflow: hidden;
}
.portal-header::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    z-index: 1;
}
.portal-header .container { position: relative; z-index: 2; }
.portal-header h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; }
.portal-header p { color: rgba(255,255,255,.65); font-size: .875rem; margin: .25rem 0 0; }
.portal-header .user-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px; padding: .35rem .9rem;
    font-size: .8rem; color: rgba(255,255,255,.85);
    font-family: 'Figtree', sans-serif; font-weight: 500;
}

.study-card {
    background: #fff; border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.study-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.study-card-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.study-type { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-main); }
.study-date { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }
.study-badge-active { background: #f0fdf4; color: #16a34a; font-size: .72rem; font-weight: 600; border-radius: 100px; padding: .2rem .65rem; white-space: nowrap; }

.study-notes {
    background: #fdfaf3; 
    border: 1px solid #fcefc7;
    border-left: 3px solid #f59e0b;
    padding: .75rem 1rem; 
    margin: .5rem 1.5rem 0;
    border-radius: 8px; 
    font-size: .85rem; 
    color: #92400e;
    display: flex; 
    align-items: flex-start; 
    gap: .6rem;
    line-height: 1.4;
}
.study-notes i { color: #d97706; font-size: .9rem; margin-top: .1rem; }

.study-card-body { padding: 1.1rem 1.5rem 1.25rem; }

.dl-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .9rem; border-radius: 8px;
    font-family: 'Figtree', sans-serif; font-size: .8rem; font-weight: 600;
    text-decoration: none; transition: background .15s, transform .1s;
    cursor: pointer; border: 0;
}
.dl-btn:hover { transform: translateY(-1px); }
.dl-btn-img  { background: #eff6ff; color: #2563eb; }
.dl-btn-img:hover { background: #dbeafe; }
.dl-btn-zip  { background: #fffbeb; color: #d97706; }
.dl-btn-zip:hover { background: #fef3c7; }
.dl-btn-pdf  { background: var(--brand-bg); color: var(--brand); }
.dl-btn-pdf:hover { background: var(--brand-bg-hover); }

.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 3rem; color: #cbd5e1; display: block; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; color: #94a3b8; }