﻿* {
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.login-wrapper {
    width: 100%;
    max-width: 428px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* En pantallas pequeñas ocupa toda la pantalla */
@@media (max-width: 575.98px) {
    body {
        align-items: flex-start;
        background-color: #fff;
    }

    .login-wrapper {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}

/* ── HEADER ── */
.login-header {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #00B5A5; /* turquesa base */
}

/* Círculo blanco grande: cubre la parte inferior del área turquesa */
.circle-white {
    position: absolute;
    width: 625px;
    height: 394px;
    background: #fff;
    border-radius: 50%;
    bottom: -310px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Círculo naranja: el dominante, encima del blanco */
.circle-orange {
    position: absolute;
    width: 450px;
    height: 450px;
    background: #E8621A;
    border-radius: 50%;
    bottom: 33px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Círculo turquesa superior: tapa la parte superior del naranja,
           dejando visible solo el arco inferior naranja */
.circle-teal-top {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #00B5A5;
    border-radius: 50%;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Logo sobre todo */
.login-header img {
    position: absolute;
    z-index: 4;
    width: 265px;
    bottom: 123px;
    left: 50%;
    transform: translateX(-50%);
}

/* ── BODY ── */
.login-body {
    padding: 2rem 2rem 1.5rem;
}

    .login-body h3 {
        font-weight: 700;
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1.5rem;
        color: #222;
    }

    .login-body .form-control {
        border-radius: 10px;
        border: 1.5px solid #ccc;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        color: #555;
    }

        .login-body .form-control:focus {
            border-color: #E8621A;
            box-shadow: none;
        }

.input-password-wrapper {
    position: relative;
}

    .input-password-wrapper .toggle-password {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #888;
        background: none;
        border: none;
        padding: 0;
    }

.forgot-password {
    text-align: center;
    margin: 1rem 0;
}

    .forgot-password a {
        color: #E8621A;
        font-weight: 600;
        text-decoration: none;
        font-size: 0.95rem;
    }

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background-color: #E8621A;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 10px;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

    .btn-login:hover {
        background-color: #E8621A;
        color: #fff;
    }

.error-msg {
    color: red;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.75rem;
}