/* --- Auth Pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-group label .required {
    color: var(--primary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
}

.input-wrapper input {
    padding-left: 42px;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--gray-500);
    padding: 0;
}

.input-wrapper .toggle-password:hover {
    color: var(--gray-700);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-check label {
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-links a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message {
    background: #D1FAE5;
    color: #059669;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* --- Dashboard --- */
.dashboard-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

/* Sidebar */
.sidebar {
    background: var(--dark);
    padding: 25px 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-logo {
    padding: 0 25px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-logo a {
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span {
    color: var(--primary);
}

.sidebar-user {
    padding: 15px 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-user-info h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sidebar-user-info p {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
    background: var(--gray-100);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(69, 123, 157, 0.1);
    color: var(--secondary-light);
}

.stat-icon.red {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(42, 157, 143, 0.1);
    color: var(--success);
}

.stat-icon.orange {
    background: rgba(244, 162, 97, 0.1);
    color: var(--accent);
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
}

.card-body {
    padding: 25px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--gray-100);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

table tr:hover td {
    background: var(--gray-100);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pendente { background: #FEF3C7; color: #D97706; }
.status-badge.pago { background: #D1FAE5; color: #059669; }
.status-badge.separando { background: #DBEAFE; color: #2563EB; }
.status-badge.enviado { background: #EDE9FE; color: #7C3AED; }
.status-badge.entregue { background: #D1FAE5; color: #059669; }
.status-badge.cancelado { background: #FEE2E2; color: #DC2626; }

/* Profile Form */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .dashboard-page {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        min-height: auto;
        position: relative;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}