* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(31,190,164,.18), transparent 35%),
        linear-gradient(145deg, #071b2d, #0d2940);
    color: #102638;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 24px;
    padding: 38px 34px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #16b89b, #69c743);
    color: white;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
}

.brand h1 {
    margin: 0;
    color: #09253b;
    font-size: 27px;
}

.brand p {
    margin: 7px 0 0;
    color: #70808c;
    font-size: 14px;
}

label {
    display: block;
    font-weight: 700;
    margin: 18px 0 7px;
    color: #18364a;
    font-size: 14px;
}

input {
    width: 100%;
    height: 50px;
    border: 1px solid #d5dee4;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
    transition: .2s;
}

input:focus {
    border-color: #17aa91;
    box-shadow: 0 0 0 4px rgba(23,170,145,.12);
}

button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    margin-top: 24px;
    background: linear-gradient(135deg, #0b314b, #135a70);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.07);
}

.error {
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: #a62626;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer {
    text-align: center;
    color: #89959d;
    font-size: 12px;
    margin-top: 25px;
}

@media (max-width: 520px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 31px 23px;
        border-radius: 20px;
    }
}

/* Mostrar / ocultar contraseña */
.password-eye-wrap{
    position:relative;
    width:100%;
}

.password-eye-wrap input{
    width:100%;
    padding-right:48px !important;
}

.password-eye{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
    font-size:19px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:.72;
}

.password-eye:hover,
.password-eye:focus{
    opacity:1;
}


/* Password eye: override del botón general del login */
.password-eye-wrap{
    position:relative !important;
    display:block !important;
    width:100% !important;
}

.password-eye-wrap > input{
    display:block !important;
    width:100% !important;
    padding-right:52px !important;
    box-sizing:border-box !important;
}

.password-eye-wrap > .password-eye{
    position:absolute !important;
    right:10px !important;
    top:50% !important;
    bottom:auto !important;
    left:auto !important;
    transform:translateY(-50%) !important;

    width:38px !important;
    min-width:38px !important;
    height:38px !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:50% !important;
    background:transparent !important;
    box-shadow:none !important;

    color:#52646b !important;
    font-size:18px !important;
    line-height:1 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    cursor:pointer !important;
    opacity:.72;
    z-index:5 !important;
}

.password-eye-wrap > .password-eye:hover{
    background:#eef4f4 !important;
    color:#087d68 !important;
    filter:none !important;
    opacity:1;
}

.password-eye-wrap > .password-eye:focus{
    outline:2px solid rgba(8,125,104,.20) !important;
    outline-offset:1px !important;
    opacity:1;
}
