* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom right, #12b8aa, #0e8f82, #0b7c70);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}


/* Tarjeta */

.login-container {
    width: 360px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-container h2 {
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* Inputs */

.input-box {
    position: relative;
    margin-bottom: 30px;
}

.input-box input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.input-box input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #fff;
}


/* Label animado */

.input-box label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    transition: 0.25s ease;
    background: transparent;
}

.input-box input:focus+label,
.input-box input:not(:placeholder-shown)+label {
    top: -8px;
    background: rgba(18, 184, 170, 0.8);
    padding: 0 6px;
    border-radius: 6px;
    font-size: 12px;
}


/* Botón */

.btn {
    width: 100%;
    padding: 14px;
    background-color: rgba(18, 184, 170, 0.8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    transition: .25s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.btn:hover {
    background-color: rgba(12, 150, 138, 0.85);
    transform: translateY(-2px);
}


/* Error */

.error {
    background: rgba(255, 80, 80, 0.25);
    color: #ffe5e5;
    border: 1px solid rgba(255, 0, 0, 0.45);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}