@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-universe {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ACE5DE;
    background: linear-gradient(130deg,rgba(172, 229, 222, 1) 0%, rgba(28, 128, 112, 1) 50%, rgba(172, 229, 222, 1) 100%);
    font-family: 'Poppins', sans-serif;
    padding: 2rem;
}

/* Glass card — XD: 476×632px, border-radius 30px, border 1px #707070, backdrop-filter blur(30px) */
.glass-card {
    position: relative;
    width: 100%;
    max-width: 476px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid #679793;
    border-radius: 30px;
    padding: 30px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    animation: cardEntry 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    opacity: 1;
}

/* We animate opacity separately since the card starts with opacity 0 for animation */
@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand / Logo section */
.logo-section {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease 0.15s both;
}

/* "moti" brand — bold, white, with red dot on i */
.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 16px;
    display: inline-block;
}

.brand-i-wrap {
    position: relative;
    display: inline-block;
}

.brand-dot {
    position: absolute;
    top: -0.12em;
    left: 50%;
    transform: translateX(-50%);
    width: 0.22em;
    height: 0.22em;
    background: #e63946;
    border-radius: 50%;
}

/* "Portal de Proveedores" — XD: Poppins SemiBold 30px, letter-spacing -0.6px, line-height 46px */
.logo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.6px;
    line-height: 46px;
    margin-bottom: 0px;
}

/* "INGRESA TUS DATOS" — XD: Poppins Medium 15px, letter-spacing -0.3px */
.logo-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 23px;
    text-transform: uppercase;
}

/* Validation errors */
.validation-errors {
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #ffd6d6;
    font-size: 14px;
    font-weight: 500;
}

/* Status message */
.status-message {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
    animation: fadeInUp 0.5s ease both;
}

.form-group:nth-child(1) { animation-delay: 0.3s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Labels — XD: Poppins Medium 15px, letter-spacing -0.3px, white */
.form-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 23px;
    margin-bottom: 6px;
}

/* Input wrapper — XD: height 66px, border-radius 10px, backdrop-filter blur(30px) */
.input-wrapper {
    position: relative;
    height: 66px;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(20, 80, 72, 0.7);
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-input {
    width: 100%;
    height: 66px;
    padding: 0 16px 0 48px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(10, 70, 62, 0.5);
    font-size: 20px;
    font-weight: 500;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.input-wrapper:focus-within svg {
    color: rgba(10, 70, 62, 0.85);
}

/* Footer / submit */
.form-footer {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.5s ease 0.5s both;
}

/* Submit button — XD: white bg, black text "Iniciar sesión", Poppins Medium 15px, letter-spacing -0.3px */
.btn-submit {
    padding: 12px 32px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-submit svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    color: #000000;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* "ready to print." — XD: Poppins Medium 15px, #000000 */
.card-footer-text {
    text-align: center;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.3px;
    animation: fadeInUp 0.5s ease 0.6s both;
}

/* Responsive */
@media (max-width: 540px) {
    .glass-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .logo-title {
        font-size: 24px;
        line-height: 36px;
    }
}
