/* Grintek B2B — identidad visual alineada con corp.grintek.pe */
.grintek-reg-container,
.grintek-login-container {
    --grk-ink: #07130d;
    --grk-forest: #103422;
    --grk-lime: #b9f227;
    --grk-lime-soft: #e6f7bc;
    --grk-cream: #f4f5ed;
    --grk-white: #ffffff;
    --grk-text: #17251d;
    --grk-muted: #69756d;
    --grk-line: #d5dbd3;
    --grk-danger: #a63a3a;
    color: var(--grk-text);
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

.grintek-reg-container *,
.grintek-login-container * {
    box-sizing: border-box;
}

.grintek-reg-container {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    max-width: none;
    margin: clamp(32px, 6vw, 76px) auto;
    overflow: hidden;
    border: 1px solid rgba(7, 19, 13, 0.12);
    border-radius: 24px;
    background: var(--grk-cream);
    box-shadow: 0 34px 80px rgba(7, 19, 13, 0.14);
}

.grintek-reg-container::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--grk-lime);
}

.grintek-reg-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
    min-height: 680px;
}

.grintek-reg-col-left {
    min-width: 0;
    padding: clamp(30px, 5vw, 56px);
    background: var(--grk-cream);
}

.grintek-reg-col-right {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4.4vw, 52px) clamp(28px, 3.6vw, 42px);
    border: 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(185, 242, 39, 0.22), transparent 30%),
        var(--grk-ink);
    color: var(--grk-white);
}

.grintek-reg-col-right::after {
    content: "";
    position: absolute;
    right: -92px;
    bottom: -92px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(185, 242, 39, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(185, 242, 39, 0.035), 0 0 0 96px rgba(185, 242, 39, 0.025);
}

.grintek-reg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--grk-lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.grintek-reg-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(185, 242, 39, 0.1);
}

.grintek-reg-info-box {
    position: relative;
    z-index: 1;
}

.grintek-reg-info-box h4 {
    margin: 0 0 20px;
    color: var(--grk-white);
    font-size: clamp(31px, 3.3vw, 45px);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.grintek-reg-info-box > p {
    margin: 0 0 20px;
    color: #b9c5bd;
    font-size: 15px;
    line-height: 1.65;
}

.grintek-reg-info-box ol {
    margin: 26px 0 0;
    padding: 0;
    color: #d7dfda;
    counter-reset: grintek-benefits;
    list-style: none;
}

.grintek-reg-info-box li {
    position: relative;
    min-height: 49px;
    padding: 14px 0 14px 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1.5;
    counter-increment: grintek-benefits;
}

.grintek-reg-info-box li::before {
    content: counter(grintek-benefits, decimal-leading-zero);
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--grk-lime);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.grintek-reg-steps {
    display: flex;
    gap: 7px;
    margin: 0 0 34px;
    padding: 5px;
    border: 1px solid var(--grk-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

.grintek-step {
    flex: 1;
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    color: #7a867e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-align: center;
    text-transform: uppercase;
}

.grintek-step.active {
    margin: 0;
    border: 0;
    background: var(--grk-ink);
    color: var(--grk-lime);
    box-shadow: 0 8px 18px rgba(7, 19, 13, 0.12);
}

.grintek-reg-step > h3 {
    margin: 0 0 28px;
    color: var(--grk-ink);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.grintek-reg-step > p {
    margin: -17px 0 27px;
    color: var(--grk-muted);
    font-size: 14px;
}

.grintek-reg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 17px;
}

.grintek-reg-field {
    min-width: 0;
    margin-bottom: 17px;
}

.grintek-reg-field label {
    display: block;
    margin-bottom: 7px;
    color: #455249;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.035em;
}

.grintek-reg-hint {
    margin: -1px 0 10px;
    color: #758078;
    font-size: 12px;
    line-height: 1.5;
}

.grintek-reg-container .grintek-reg-field input:not([type="file"]):not([type="hidden"]),
.grintek-reg-container .grintek-reg-field select,
.grintek-login-box .grintek-reg-field input:not([type="hidden"]) {
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--grk-line);
    border-radius: 10px;
    outline: none;
    background-color: var(--grk-white);
    color: var(--grk-text);
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.grintek-reg-container .grintek-reg-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    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='%23455249' 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 14px 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,
.grintek-login-box .grintek-reg-field input:not([type="hidden"]):focus {
    border-color: #739a10;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(185, 242, 39, 0.22);
}

.grintek-reg-container .grintek-reg-field input[type="file"] {
    width: 100%;
    min-height: 54px;
    padding: 7px;
    border: 1px dashed #b5beb7;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #566159;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.grintek-reg-container input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: var(--grk-ink);
    color: var(--grk-white);
    cursor: pointer;
    font-weight: 700;
}

.grintek-field-error {
    border-color: var(--grk-danger) !important;
    box-shadow: 0 0 0 4px rgba(166, 58, 58, 0.11) !important;
}

.grintek-reg-validation-msg {
    margin: 17px 0 9px;
    padding: 14px 16px;
    border: 1px solid #efd0bf;
    border-radius: 10px;
    background: #fff5ee;
    color: #6f4939;
    font-size: 13px;
    line-height: 1.55;
}

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

.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,
.grintek-login-box .grintek-password-wrap input {
    padding-right: 48px !important;
}

.grintek-toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.grintek-toggle-password:hover,
.grintek-toggle-password:focus-visible {
    outline: none;
    background: #eef1eb;
}

.grintek-icon-eye {
    display: block;
    width: 21px;
    height: 21px;
    opacity: 0.62;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23455249'%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;
}

.grintek-toggle-password.is-visible .grintek-icon-eye {
    opacity: 1;
    filter: sepia(1) saturate(4) hue-rotate(32deg);
}

.grintek-reg-btn,
.grintek-reg-container .button {
    display: inline-flex;
    width: 100%;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 0 20px;
    border: 1px solid var(--grk-lime);
    border-radius: 10px;
    background: var(--grk-lime);
    color: var(--grk-ink);
    box-shadow: 0 13px 30px rgba(93, 126, 14, 0.13);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.grintek-reg-btn:hover,
.grintek-reg-btn:focus-visible,
.grintek-reg-container .button:hover {
    transform: translateY(-2px);
    outline: none;
    background: #c6ff32;
    color: var(--grk-ink);
    box-shadow: 0 17px 36px rgba(93, 126, 14, 0.2);
}

.grintek-reg-actions {
    display: grid;
    grid-template-columns: 0.68fr 1.32fr;
    gap: 10px;
}

.grintek-reg-btn-secondary,
#btn-submit-reg {
    width: 100%;
    float: none;
}

.grintek-reg-btn-secondary {
    border-color: #bfc7c0;
    background: transparent;
    color: #455249;
    box-shadow: none;
}

.grintek-reg-btn-secondary:hover {
    background: #e8ece5;
}

.grintek-reg-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(4, 10, 6, 0.78);
    backdrop-filter: blur(10px);
}

.grintek-reg-modal-content {
    position: relative;
    width: min(510px, 100%);
    max-width: none;
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(185, 242, 39, 0.34);
    border-radius: 22px;
    background: var(--grk-ink);
    color: #c4cec7;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
    text-align: left;
}

.grintek-reg-modal-content::before {
    content: "✓";
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 13px;
    background: var(--grk-lime);
    color: var(--grk-ink);
    font-weight: 900;
}

.grintek-reg-close {
    position: absolute;
    top: 16px;
    right: 19px;
    color: #829087;
    cursor: pointer;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
}

.grintek-reg-close:hover { color: var(--grk-lime); }
.grintek-reg-modal-header h2 {
    margin: 0 0 18px;
    color: var(--grk-white);
    font-size: 31px;
    letter-spacing: -0.04em;
}
.grintek-reg-modal-body p { margin: 0 0 12px; }
.grintek-reg-modal-body strong { color: var(--grk-white); }

.grintek-login-container {
    position: relative;
    width: min(510px, calc(100% - 32px));
    max-width: none;
    margin: clamp(42px, 8vw, 92px) auto;
}

.grintek-login-container::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -100px;
    left: 50%;
    width: 470px;
    height: 470px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 242, 39, 0.2), transparent 67%);
}

.grintek-login-box {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 47px);
    border: 1px solid rgba(185, 242, 39, 0.22);
    border-radius: 23px;
    background:
        radial-gradient(circle at 92% 3%, rgba(185, 242, 39, 0.15), transparent 27%),
        var(--grk-ink);
    color: var(--grk-white);
    box-shadow: 0 34px 80px rgba(7, 19, 13, 0.25);
}

.grintek-login-header {
    margin-bottom: 31px;
    text-align: left;
}

.grintek-login-header::before {
    content: "G";
    display: grid;
    width: 37px;
    height: 37px;
    margin-bottom: 24px;
    transform: rotate(-6deg);
    place-items: center;
    border-radius: 10px;
    background: var(--grk-lime);
    color: var(--grk-ink);
    font-size: 19px;
    font-weight: 900;
}

.grintek-login-header h2 {
    margin: 0 0 9px;
    color: var(--grk-white);
    font-size: clamp(30px, 5vw, 39px);
    font-weight: 720;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.grintek-login-header p {
    margin: 0;
    color: #9eaca3;
    font-size: 14px;
}

.grintek-login-box .grintek-reg-field label { color: #c9d2cc; }
.grintek-login-box .grintek-reg-field input:not([type="hidden"]) {
    border-color: rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.075);
    color: var(--grk-white);
}
.grintek-login-box .grintek-reg-field input::placeholder { color: #829087; }
.grintek-login-box .grintek-toggle-password:hover { background: rgba(255, 255, 255, 0.08); }
.grintek-login-box .grintek-icon-eye { filter: brightness(0) invert(1); }
.grintek-login-box .grintek-reg-btn { margin-top: 8px; }

.grintek-login-error {
    margin-bottom: 15px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(255, 149, 149, 0.25);
    border-radius: 9px !important;
    background: rgba(122, 31, 31, 0.25) !important;
    color: #ffb9b9 !important;
    font-size: 13px !important;
}

.grintek-login-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8d9a92;
    font-size: 13px;
    text-align: center;
}

.grintek-login-footer p { margin: 0; }
.grintek-login-footer a {
    color: var(--grk-lime);
    font-weight: 750;
    text-decoration: none;
}
.grintek-login-footer a:hover { color: #d0ff55; text-decoration: underline; }

@media (max-width: 820px) {
    .grintek-reg-row { grid-template-columns: 1fr; }
    .grintek-reg-col-right { grid-row: 1; min-height: 410px; }
    .grintek-reg-col-left { grid-row: 2; }
}

@media (max-width: 620px) {
    .grintek-reg-container { width: min(100% - 20px, 1120px); border-radius: 18px; }
    .grintek-reg-col-left, .grintek-reg-col-right { padding: 28px 21px; }
    .grintek-reg-col-right { min-height: 0; }
    .grintek-reg-grid { grid-template-columns: 1fr; gap: 0; }
    .grintek-reg-actions { grid-template-columns: 1fr; }
    .grintek-reg-modal-content { padding: 32px 24px; }
    .grintek-login-box { padding: 31px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .grintek-reg-container *, .grintek-login-container * { transition-duration: 0.01ms !important; }
}
