.grintek-reg-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: inherit;
}

.grintek-reg-row {
    display: flex;
    flex-wrap: wrap;
}

.grintek-reg-col-left {
    flex: 2;
    padding: 30px;
}

.grintek-reg-col-right {
    flex: 1;
    background: #f4f7f6;
    padding: 30px;
    border-left: 1px solid #e0e0e0;
}

.grintek-reg-info-box h4 {
    margin-top: 0;
    color: #333;
}

.grintek-reg-info-box ol {
    padding-left: 20px;
    color: #555;
    line-height: 1.6;
}

.grintek-reg-steps {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.grintek-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: #999;
    font-weight: bold;
}

.grintek-step.active {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    margin-bottom: -2px;
}

.grintek-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grintek-reg-field {
    margin-bottom: 15px;
}

.grintek-reg-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
}

.grintek-reg-hint {
    font-size: 13px;
    color: #555;
    margin: 6px 0 10px;
    line-height: 1.45;
}

/**
 * Controles del formulario de registro: misma altura, tipografía y borde
 * (todo bajo .grintek-reg-container para no afectar al resto del sitio).
 */
.grintek-reg-container .grintek-reg-field input:not([type="file"]):not([type="hidden"]),
.grintek-reg-container .grintek-reg-field select {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.35;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    margin: 0;
}

.grintek-reg-container .grintek-reg-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23666' stroke-width='1.5' stroke-linecap='round' d='M1 1.5 6 6 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

.grintek-reg-container .grintek-reg-field input:not([type="file"]):not([type="hidden"]):focus,
.grintek-reg-container .grintek-reg-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.25);
}

/* Archivos adjuntos: misma familia de borde, altura natural */
.grintek-reg-container .grintek-reg-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
}

/* Login B2B: alinear con el mismo criterio de altura (opcional, mismo scope) */
.grintek-login-box .grintek-reg-field input:not([type="hidden"]) {
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.35;
    font-family: inherit;
    width: 100%;
}

.grintek-field-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.2);
}

.grintek-reg-validation-msg {
    background: #fff8f0;
    border: 1px solid #e8d4c0;
    color: #5c4a3a;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin: 16px 0 8px;
    line-height: 1.5;
}

.grintek-reg-validation-msg strong {
    display: block;
    margin-bottom: 6px;
    color: #4a3d32;
}

.grintek-reg-validation-msg ul {
    margin: 6px 0 0;
    padding-left: 1.2em;
}

.grintek-reg-container .grintek-password-wrap,
.grintek-login-box .grintek-password-wrap {
    position: relative;
}

.grintek-reg-container .grintek-password-wrap input[type="password"],
.grintek-reg-container .grintek-password-wrap input[type="text"] {
    padding-right: 46px;
}

.grintek-login-box .grintek-password-wrap input[type="password"],
.grintek-login-box .grintek-password-wrap input[type="text"] {
    padding-right: 46px;
}

.grintek-toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.grintek-toggle-password:hover,
.grintek-toggle-password:focus {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.grintek-icon-eye {
    width: 22px;
    height: 22px;
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.65;
}

.grintek-toggle-password.is-visible .grintek-icon-eye {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230073aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21'/%3E%3C/svg%3E");
}

.grintek-reg-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.grintek-reg-btn-secondary {
    background: #ccc;
    color: #333;
    width: 48%;
    display: inline-block;
}

#btn-submit-reg {
    width: 48%;
    float: right;
}

/* Modal CSS */
.grintek-reg-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.grintek-reg-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 1px solid #ccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.grintek-reg-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

/* Login Form CSS */
.grintek-login-container {
    max-width: 450px;
    margin: 60px auto;
    font-family: inherit;
}

.grintek-login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
}

.grintek-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.grintek-login-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

.grintek-login-header p {
    color: #666;
    margin: 0;
}

.grintek-login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.grintek-login-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.grintek-login-footer a:hover {
    text-decoration: underline;
}
.grintek-reg-close:hover {
    color: #333;
}

.grintek-reg-modal-header h2 {
    color: #27ae60;
    margin-top: 0;
}

@media (max-width: 768px) {
    .grintek-reg-row {
        flex-direction: column-reverse;
    }
    .grintek-reg-col-right {
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .grintek-reg-grid {
        grid-template-columns: 1fr;
    }
}
