/* ============================================================
   assets/css/login.css
   Login, role selection & dashboard — Corporate Professional
   (variables come from style.css :root)
   ============================================================ */

/* ---------- LOGIN / ROLE PAGE ---------- */
.login-page {
    width: 100%; min-height: 100vh; display: flex; align-items: center;
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(29,78,216,0.10), transparent 60%),
        radial-gradient(700px 380px at 100% 100%, rgba(11,31,58,0.06), transparent 55%),
        var(--canvas);
    padding: 2.5rem 0;
}
.login-brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.brand-logo { height: 34px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; }
.brand-name span { color: var(--accent-gold); }

.login-heading { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 0.2rem; letter-spacing: -0.5px; }
.login-subheading { font-size: 1rem; color: var(--gray-500); text-align: center; }

/* Role cards */
.role-card {
    background: var(--surface); border-radius: var(--radius-lg); padding: 1.9rem 1.6rem;
    text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform 0.28s cubic-bezier(0.2,0.9,0.3,1), box-shadow 0.28s, border-color 0.28s;
    height: 100%; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden;
}
.role-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-gold); opacity: 0; transition: opacity 0.28s; }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.role-card:hover::before { opacity: 1; }
.role-icon { font-size: 2.5rem; margin-bottom: 0.5rem; transition: transform 0.3s ease; }
.role-card:hover .role-icon { transform: scale(1.06); }
.client-role .role-icon { color: var(--primary-blue); }
.photographer-role .role-icon { color: var(--primary-purple); }
.admin-role .role-icon { color: var(--primary-red); }
.role-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3rem; }
.role-desc { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; }

.role-features { list-style: none; padding: 0; margin: 0 0 1.2rem 0; width: 100%; text-align: left; }
.role-features li { font-size: 0.85rem; color: var(--gray-700); padding: 0.2rem 0; display: flex; align-items: center; gap: 0.6rem; }
.role-features li i { width: 1.1rem; font-size: 0.75rem; color: var(--accent-gold); flex-shrink: 0; }

.role-btn { border: none; border-radius: 10px; padding: 0.6rem 1.8rem; font-weight: 600; font-size: 0.88rem; transition: all 0.22s ease; width: 100%; max-width: 220px; text-align: center; text-decoration: none; color: #fff; cursor: pointer; }
.client-btn { background: var(--primary-blue); }
.client-btn:hover { background: var(--primary-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(29,78,216,0.32); }
.photographer-btn { background: var(--primary-purple); }
.photographer-btn:hover { background: #5b21b6; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(109,40,217,0.32); }
.admin-btn { background: var(--primary-red); }
.admin-btn:hover { background: #b91c1c; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(220,38,38,0.32); }

.role-demo { font-size: 0.75rem; color: var(--gray-300); margin-top: 0.5rem; }
.login-footer { text-align: center; margin-top: 2.6rem; }
.back-home { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gray-500); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.back-home:hover { color: var(--ink); }
.contact-sales { color: var(--gray-500); font-size: 0.9rem; margin-top: 0.5rem; }
.contact-sales a { color: var(--accent-gold); font-weight: 600; text-decoration: none; }

/* ---------- AUTH CARD (login/register forms) ---------- */
.auth-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2.4rem 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold)); }
.auth-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 0.2rem; letter-spacing: -0.4px; }
.auth-subtitle { font-size: 0.95rem; color: var(--gray-500); text-align: center; margin-bottom: 1.6rem; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); display: flex; align-items: center; gap: 0.4rem; }
.form-group .form-control { border: 1.5px solid var(--border); border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; background: #fff; }
.form-group .form-control:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(29,78,216,0.10); outline: none; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }

.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--gray-500); margin: 0.2rem 0; }
.remember-me { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.forgot-link { color: var(--primary-blue); text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

.auth-btn { background: var(--primary-blue); color: #fff; border: none; border-radius: 10px; padding: 0.72rem; font-weight: 700; font-size: 0.98rem; transition: all 0.22s ease; cursor: pointer; box-shadow: 0 6px 18px rgba(29,78,216,0.24); }
.auth-btn:hover { background: var(--primary-blue-dark); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(29,78,216,0.32); }
.auth-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.auth-footer { text-align: center; margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.auth-footer p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0.3rem; }
.auth-footer p a { color: var(--primary-blue); font-weight: 600; text-decoration: none; }
.auth-footer p a:hover { text-decoration: underline; }
.auth-footer .back-link { font-size: 0.85rem; color: var(--gray-300); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.auth-footer .back-link:hover { color: var(--gray-700); }

/* ---------- DASHBOARD SHELL ---------- */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 264px;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-800) 100%);
    color: rgba(255,255,255,0.7); padding: 1.4rem 0.9rem; z-index: 1050;
    transition: transform 0.3s ease; overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.2rem 0.6rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.4rem; }
.sidebar-brand img { height: 30px; width: auto; }
.sidebar-brand span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.sidebar-brand span span { color: var(--accent-gold); }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin-bottom: 0.2rem; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.72rem 0.9rem;
    border-radius: 10px; color: rgba(255,255,255,0.62); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: all 0.18s ease;
    position: relative; border-left: 3px solid transparent;
}
.sidebar-menu a i { width: 1.1rem; text-align: center; font-size: 0.95rem; }
.sidebar-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-menu a.active { background: rgba(29,78,216,0.22); color: #fff; border-left-color: var(--accent-gold); }
.sidebar-menu .badge { margin-left: auto; background: var(--primary-red); color: #fff; font-size: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 50px; font-weight: 700; }
.sidebar-footer { position: absolute; bottom: 1.4rem; left: 0.9rem; right: 0.9rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer a { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.9rem; border-radius: 10px; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.86rem; font-weight: 500; transition: all 0.18s ease; }
.sidebar-footer a:hover { background: rgba(220,38,38,0.15); color: #fff; }

.main-content { margin-left: 264px; padding: 1.6rem 2rem 2.5rem; min-height: 100vh; background: var(--canvas); }
.top-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; flex-wrap: wrap; gap: 1rem; }
.top-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.4px; }
.user-info { display: flex; align-items: center; gap: 0.9rem; }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-blue), var(--ink)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-sm); }
.name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.role { font-size: 0.8rem; color: var(--gray-500); }
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; padding: 0.3rem 0.5rem; }

/* Stat cards */
.stat-card { background: var(--surface); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 1.6rem; color: var(--primary-blue); margin-bottom: 0.4rem; }
.stat-number { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 0.84rem; color: var(--gray-500); font-weight: 500; }

/* Panels */
.card-panel { background: var(--surface); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.panel-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; display: flex; align-items: center; }
.panel-title i { color: var(--primary-blue); }

/* Enterprise tables */
.table-dashboard { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
.table-dashboard thead th {
    background: var(--gray-100); color: var(--gray-500);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.7rem 0.9rem; border: none; white-space: nowrap; text-align: left;
}
.table-dashboard thead th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.table-dashboard thead th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.table-dashboard tbody td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--gray-700); vertical-align: middle; }
.table-dashboard tbody tr:last-child td { border-bottom: none; }
.table-dashboard tbody tr:hover td { background: rgba(29,78,216,0.03); }
.table-dashboard tbody td strong { color: var(--ink); font-weight: 600; }

/* Status badges */
.badge-status { display: inline-block; padding: 0.28rem 0.75rem; border-radius: 50px; font-size: 0.73rem; font-weight: 600; line-height: 1.2; }
.badge-status.completed { background: #D1FAE5; color: #065F46; }
.badge-status.pending { background: #FEF3C7; color: #92400E; }
.badge-status.in-progress { background: #DBEAFE; color: #1E40AF; }
.badge-status.uploaded { background: #D1FAE5; color: #065F46; }
.badge-status.processing { background: #DBEAFE; color: #1E40AF; }
.badge-status.active { background: #D1FAE5; color: #065F46; }
.badge-status.inactive { background: #FEE2E2; color: #991B1B; }

/* Upload widgets */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.upload-item { background: var(--gray-100); border-radius: 10px; padding: 1rem; text-align: center; border: 2px dashed var(--gray-300); transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.upload-item:hover { border-color: var(--primary-blue); background: rgba(29,78,216,0.05); }
.upload-item i { font-size: 2.4rem; color: var(--gray-500); margin-bottom: 0.3rem; }
.upload-item span { display: block; font-size: 0.8rem; color: var(--gray-500); }

.chart-container { position: relative; height: 220px; margin-top: 0.5rem; }

/* Inputs on dark-free contexts already covered by .form-control above */
input[type="file"].pf-file { font-size: 0.85rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; }
    .hamburger { display: block; }
    .top-header h2 { font-size: 1.2rem; }
}
@media (max-width: 575.98px) {
    .stat-number { font-size: 1.5rem; }
    .top-header { flex-direction: column; align-items: stretch; }
    .user-info { justify-content: flex-start; }
    .auth-card { padding: 1.5rem 1rem; }
    .login-heading { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .role-card, .stat-card, .auth-btn, .btn-login { transition: none; }
}
