﻿/* ================================
   CONTENEDOR GENERAL
================================ */

.cambiar-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(23,23,32); /* 🔥 oscuro */
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================
   CARD
================================ */

.cambiar-card {
    background: rgba(255,255,255,0.05); /* 🔥 glass */
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    padding: 2rem 3rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .cambiar-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 45px rgba(0,0,0,0.9);
    }

    .cambiar-card h2 {
        text-align: center;
        color: #ffffff;
        margin-bottom: 1rem;
        font-size: 1.8rem;
        font-weight: 600;
    }

    .cambiar-card p.info {
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        color: rgba(255,255,255,0.6);
    }

/* ================================
   FORM CONTROL
================================ */

.form-group {
    margin-bottom: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control::placeholder {
        color: rgba(255,255,255,0.4);
    }

    .form-control:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.25);
        outline: none;
    }

/* ================================
   BOTON GUARDAR
================================ */

.btn-guardar {
    width: 100%;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg,#319e9f,#319e9f);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .btn-guardar:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(37,99,235,0.45);
    }

    .btn-guardar:disabled {
        background: rgba(37,99,235,0.5);
        cursor: not-allowed;
        box-shadow: none;
    }

/* ================================
   ERROR BOX
================================ */

.error-box {
    background: rgba(239,68,68,0.15); /* 🔴 suave */
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.35);
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

/* ================================
   INPUT PASSWORD + ICONO
================================ */

.input-password {
    position: relative;
}

.btn-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255,255,255,0.6);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 576px) {

    .cambiar-card {
        padding: 1.5rem 1.5rem;
    }

        .cambiar-card h2 {
            font-size: 1.5rem;
        }

    .btn-guardar {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}
