* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #eef2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.top-logo {
    position: absolute;
    top: 20px;
    left: 20px;
}

.container {
    width: 100%;
    max-width: 580px;
    padding: 10px;
}

.login-box {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 35px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 480px;
}

header {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    margin-bottom: 5px;
}

.logo img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
}

.user-type-selector {
    display: flex;
    background-color: #f0f2f5;
    padding: 5px;
    border-radius: 25px;
    width: 100%;
    margin-bottom: 15px;
}

.type-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn.active {
    background-color: #00AEEF;
    color: white;
    box-shadow: 0 2px 10px rgba(0,174,239,0.3);
}

.login-form {
    width: 100%;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 5px;
    position: relative;
}

.input-group input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    color: #333;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: #aaa;
}

.input-group input:focus {
    outline: none;
    border-color: #00AEEF;
}

.input-group input.error {
    border-color: #ff4d4d;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: left;
    min-height: 1.2rem;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
}

.forgot-password {
    margin-bottom: 15px;
    text-align: left;
}

.forgot-password a {
    color: #00AEEF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-ingresar {
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    border: none;
    background-color: #00AEEF;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,174,239,0.2);
}

.btn-ingresar:hover {
    background-color: #008ec2;
}

.footer-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.btn-registrar {
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    border: none;
    background-color: #f0f2f5;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.contact-text {
    font-size: 0.85rem;
    color: #777;
}

.contact-text a {
    color: #00AEEF;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 480px) {
    .top-logo {
        display: none;
    }
    .login-box {
        min-height: auto;
        box-shadow: none;
        background: transparent;
        padding: 20px 10px;
    }
    body {
        background-color: #fff;
        align-items: flex-start;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: left;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .icon {
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Campos Jurídicos */
.authorized-user-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.authorized-user-check label {
    font-size: 0.9rem;
    color: #666;
}

.authorized-user-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00AEEF;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.rif-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.rif-select {
    width: 70px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.rif-container input {
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.btn-cancelar {
    background-color: #eef2f5;
    color: #333;
    border: none;
    padding: 12px 35px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cancelar:hover {
    background-color: #e0e4e7;
}
