/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.bg-app {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #0d1e3f, #184e77);
    padding: 20px;
}

/* CONTAINER */
.login-container {
    width: 100%;
    max-width: 420px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);

    padding: 32px 24px;
    border-radius: 28px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    animation: fadeIn 0.5s ease;
}

/* HEADER */
.header-greeting {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 10px;
}

.app-title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
}

.app-subtitle {
    color: #e5e7eb;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group label {
    color: #e2e8f0;
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);

    color: #fff;
    font-size: 1rem;

    outline: none;
    transition: .2s;
}

.input-group input::placeholder {
    color: #d1d5db;
}

.input-group input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.35);
}

/* BOTON */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: .15s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:active {
    transform: scale(0.97);
}

/* ERROR */
.error-box {
    background: rgba(255, 0, 0, 0.25);
    color: #ffcccc;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* Enlace */
.forgot {
    text-align: center;
    margin-top: 10px;
}

.forgot a {
    color: #c7d2fe;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot a:hover {
    text-decoration: underline;
}

/* ANIMACIONES */
.fade-in {
    animation: fade-in .4s ease-out forwards;
}

.slide-down {
    animation: slide-down .35s ease-out forwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none !important;
}

/* APP BACKGROUND */
.app-body {
    min-height: 100vh;
    background: #f2f4f8;
    padding-bottom: 80px;
}

/* HEADER */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: white;
    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left .welcome-text {
    font-size: 0.8rem;
    color: #64748b;
}

.header-left .user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* MAIN CONTENT */
.app-content {
    padding: 18px;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 72px;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-around;

    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
}

.nav-item {
    flex-grow: 1;
    text-align: center;
    padding: 8px 0;

    font-size: 0.75rem;
    color: #94a3b8;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    transition: all .25s ease;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item.active {
    color: #2563eb;
    font-weight: 700;
    transform: translateY(-2px);
}

.nav-item.active i {
    color: #2563eb;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    border-radius: 16px;

    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    margin-bottom: 18px;
}

.card h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* AJUSTES */
.ajustes-container {
    padding: 20px;
}

.ajustes-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.avatar-section {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    margin-bottom: 12px;
}

.account-card {
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.password-section label {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 10px;
}

.password-section input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    margin-bottom: 8px;
}

.password-section .subtitle {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.msg-success {
    background: #d1fae5;
    color: #047857;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.msg-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* BOTONES */
.btn {
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn.primary {
    background: #2563eb;
    color: white;
}

.btn.secondary {
    background: #e2e8f0;
    color: #334155;
}

