/* ===== Base ===== */
* { box-sizing: border-box; }
html { height: 100%; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; min-height: 100vh; margin: 0; }

/* ===== Page Layout ===== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.page-wrapper > main { width: 100%; max-width: 440px; }

/* ===== Card ===== */
.reset-card {
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 20px 40px -8px rgba(0,0,0,0.2);
    background: #fff;
    padding: 2rem;
}
@media (min-width: 768px) { .reset-card { padding: 2.5rem; } }
@media (max-width: 480px) { .reset-card { padding: 1.25rem; } .page-wrapper { padding: 12px 8px; } }

/* ===== Logo ===== */
.brand-logo { max-width: 200px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 480px) { .brand-logo { max-width: 150px; } }

/* ===== Icon ===== */
.icon-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    color: #4f46e5;
}

/* ===== Typography ===== */
.reset-card h2 { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 0.25rem; }
.subtitle { font-size: 0.9rem; color: #64748b; margin: 0; }

/* ===== Form ===== */
.form-label { color: #374151; font-size: 0.875rem; font-weight: 500; }

.reset-card .form-control {
    border-radius: 0 10px 10px 0;
    border: 1.5px solid #e2e8f0;
    border-left: none;
    font-size: 16px;
    letter-spacing: 1px;
}

.reset-card .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.reset-card .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    background: #f8fafc;
    color: #94a3b8;
}

/* ===== Buttons ===== */
.reset-card .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.reset-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.4);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}
.reset-card .btn-primary:active { transform: translateY(0); }

.btn-back { color: #64748b; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.btn-back:hover { color: #4f46e5; text-decoration: none; }

/* ===== Modal ===== */
.modal-rounded { border-radius: 16px; overflow: hidden; border: none; }
.modal-header-success { background: linear-gradient(135deg, #059669, #10b981); color: #fff; border: none; }
.modal-header-success .close { color: #fff; opacity: 0.8; }
.modal-header-error { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; border: none; }
.modal-header-error .close { color: #fff; opacity: 0.8; }
.modal-footer { border-top: none; }

/* ===== Loader ===== */
.loader-default {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}
.loader-default::after { content: attr(data-text); }

/* ===== Footer ===== */
.app-footer { margin-top: 24px; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.app-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.app-footer a:hover { color: #fff; }
.app-footer .sep { margin: 0 8px; opacity: 0.4; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .reset-card .form-control, .reset-card .form-control-lg { font-size: 16px !important; }
}

@media (max-width: 480px) {
    .reset-card h2 { font-size: 1.25rem; }
    .icon-circle { width: 44px; height: 44px; }
    .icon-circle svg { width: 20px; height: 20px; }
}
