* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login {
    display: flex;
    height: 100vh;
}

.login-welcome {
    flex: 1;
    min-width: 0;
    background-image: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 100%), url('/images/padre-garcia-bg.jpg');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
}

.login-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.login-welcome__brand {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.login-welcome__logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-welcome__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-welcome__company-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-welcome__content {
    text-align: center;
    z-index: 2;
    max-width: 400px;
}

.login-welcome__subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
    transition: font-size 120ms ease;
}

.login-welcome__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: font-size 140ms ease;
}

.login-welcome__separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.login-welcome__description {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 300;
    transition: font-size 120ms ease, line-height 120ms ease;
}

.login-form {
    flex: 0 0 500px;
    width: 500px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    max-width: 500px;
}

.login-form__title {
    font-size: 2rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 0.5rem;
}

.login-form__description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-form__success-message {
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 14px;
}

.form-field--has-toggle .form-field__input {
    padding-right: 2.25rem;
}

.form-field__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-left: 4px solid #4A90E2;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-field__input:focus {
    outline: none;
    border-color: #4A90E2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-field__input::placeholder {
    color: #999;
}

.form-field__toggle-btn {
    position: absolute;
    right: 15px;
    top: 44%;
    transform: translateY(-58%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease;
}

.form-field__toggle-btn:hover {
    color: #357ABD;
}

.form-field__error {
    color: #dc3545;
    font-size: 0.7rem;
    margin-top: 0.15rem;
    display: block;
    font-weight: 500;
    position: absolute;
    left: 0;
    bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-validation {
    color: #dc3545;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-options__checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-options__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #4A90E2;
}

.form-options__checkbox-label {
    color: #666;
    font-size: 0.9rem;
}


.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer__text {
    color: #666;
    font-size: 0.9rem;
}


/* Responsive - Tablet */
@media (max-width: 768px) {
    .login-welcome > * {
        display: none !important;
    }
    .login {
        flex-direction: column;
        position: relative;
        min-height: 100vh;
    }

    .login-welcome {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-width: 0;
        z-index: 1;
        display: block;
    }

    .login-form {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 400px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        border-radius: 16px;
        z-index: 2;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .login-form__description {
        width: 100%;
        text-align: center;
    }
    .form-field {
        width: 100%;
    }

    .login-form__title {
        text-align: center;
    }

    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .form-options__checkbox-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .login-form {
        width: 92vw;
        max-width: 380px;
        background: rgba(255,255,255,0.98);
        border-radius: 14px;
        padding: 1.8rem 1.3rem;
    }

    .login-form__title {
        font-size: 1.7rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }

    .login-form__description {
        font-size: 0.85rem;
        margin-bottom: 1.6rem;
        width: 100%;
        text-align: center;
    }

    .form-field {
        width: 100%;
        margin-bottom: 1rem;
    }

    .form-field__input {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        margin-bottom: 1.6rem;
    }

    .form-options__checkbox-group {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .form-options__checkbox-label {
        font-size: 0.8rem;
    }

}
