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

/* ============================================================
   ReeSoft Login — Premium Design (matching landing page)
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0F1B0F 0%, #1a3a1a 50%, #0F1B0F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background orbs */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 191, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: login-pulse 8s ease-in-out infinite;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -25%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 166, 90, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: login-pulse 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes login-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ============================================================
   Logo / Pen Title
   ============================================================ */
.pen-title {
    text-align: center;
    padding: 0;
    margin-bottom: 28px;
    letter-spacing: 0;
    position: relative;
    z-index: 2;
}
.pen-title img {
    display: block;
    margin: 0 auto;
}
.pen-title h1 {
    margin: 0;
    font-size: 0;
}
.pen-title span {
    font-size: inherit;
}
.rs-login-logo {
    text-align: center;
}

/* ============================================================
   Login Type Buttons (Usar Mi Nombre / Usar Mi Pin)
   ============================================================ */
.btn_login_pin_table {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.btn_login_pin_type {
    outline: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn_login_pin_type:hover {
    text-decoration: none;
    color: #5ABF35;
    border-color: rgba(90, 191, 53, 0.4);
    background: rgba(90, 191, 53, 0.08);
}
.btn_login_pin_type:focus {
    text-decoration: none;
    color: #5ABF35;
    border-color: rgba(90, 191, 53, 0.4);
}
.active_login_btn {
    background: linear-gradient(135deg, #5ABF35, #00a65a) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(90, 191, 53, 0.3);
}
.active_login_btn:hover {
    background: linear-gradient(135deg, #4CAF2E, #009950) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(90, 191, 53, 0.4);
}
.active_login_btn:focus {
    background: linear-gradient(135deg, #5ABF35, #00a65a) !important;
    color: #ffffff !important;
}

/* ============================================================
   Container
   ============================================================ */
.container {
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}
.container.active .card:first-child {
    background: rgba(255, 255, 255, 0.03);
    margin: 0 15px;
}
.container.active .card:nth-child(2) {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 10px;
}
.container.active .card.alt {
    top: 20px;
    right: 0;
    width: 100%;
    min-width: 100%;
    height: auto;
    border-radius: 20px;
    padding: 60px 0 40px;
    overflow: hidden;
}
.container.active .card.alt .toggle {
    position: absolute;
    top: 40px;
    right: -70px;
    box-shadow: none;
    -webkit-transform: scale(14);
    transform: scale(15);
    -webkit-transition: -webkit-transform .5s ease;
    transition: transform .5s ease;
}
.container.active .card.alt .toggle:before {
    content: '';
}
.container.active .card.alt .title,
.container.active .card.alt .input-container,
.container.active .card.alt .button-container {
    left: 0;
    opacity: 1;
    visibility: visible;
    transition: .3s ease;
}
.container.active .card.alt .title {
    transition-delay: .3s;
}
.container.active .card.alt .input-container {
    transition-delay: .4s;
}
.container.active .card.alt .input-container:nth-child(2) {
    transition-delay: .5s;
}
.container.active .card.alt .input-container:nth-child(3) {
    transition-delay: .6s;
}
.container.active .card.alt .button-container {
    transition-delay: .7s;
}

/* ============================================================
   Card — Glassmorphism Style
   ============================================================ */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 36px 0 40px 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: .3s ease;
}
.card:first-child {
    background: rgba(255, 255, 255, 0.03);
    height: 10px;
    border-radius: 20px 20px 0 0;
    margin: 0 10px;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Title */
.card .title {
    position: relative;
    z-index: 1;
    border-left: 4px solid #5ABF35;
    margin: 0 0 0px;
    padding: 8px 0 8px 40px;
    color: #5ABF35;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Inputs */
.card .input-container {
    position: relative;
    margin: 0 40px 6px;
}
.custom_margin {
    position: relative;
    margin: 0 40px 14px !important;
}
.card .input-container input {
    outline: none;
    z-index: 1;
    position: relative;
    background: none;
    width: 100%;
    height: 54px;
    border: 0;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
.card .input-container input:focus ~ label {
    color: rgba(255, 255, 255, 0.5);
    -webkit-transform: translate(-12%, -50%) scale(0.75);
    transform: translate(-12%, -50%) scale(0.75);
}
.card .input-container input:focus ~ .bar:before,
.card .input-container input:focus ~ .bar:after {
    width: 50%;
}
.card .input-container input:valid ~ label {
    color: rgba(255, 255, 255, 0.5);
    -webkit-transform: translate(-12%, -50%) scale(0.75);
    transform: translate(-12%, -50%) scale(0.75);
    margin-top: 0px !important;
}
.card .input-container label {
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 60px;
    transition: 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card .input-container .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 1px;
}
.card .input-container .bar:before,
.card .input-container .bar:after {
    content: '';
    position: absolute;
    background: #5ABF35;
    width: 0;
    height: 2px;
    transition: .2s ease;
}
.card .input-container .bar:before {
    left: 50%;
}
.card .input-container .bar:after {
    right: 50%;
}

/* Button */
.card .button-container {
    margin: 0 38px;
    text-align: center;
}
.card .button-container button {
    outline: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: 100%;
    border: 2px solid transparent;
    padding: 18px 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #5ABF35, #00a65a);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(90, 191, 53, 0.3);
}
.card .button-container button span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    transition: .3s ease;
}
.card .button-container button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    background: #4CAF2E;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    margin: -15px 0 0 -15px;
    opacity: 0;
    transition: .3s ease;
}
.card .button-container button:hover,
.card .button-container button:active,
.card .button-container button:focus {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 191, 53, 0.4);
}
.card .button-container button:hover span,
.card .button-container button:active span,
.card .button-container button:focus span {
    color: #ffffff;
}
.card .button-container button:active span,
.card .button-container button:focus span {
    color: #ffffff;
}
.card .button-container button:active:before,
.card .button-container button:focus:before {
    opacity: 1;
    -webkit-transform: scale(10);
    transform: scale(10);
}
.card .button-container button:hover {
    color: white !important;
}

/* Footer / Forgot Password */
.card .footer {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}
.card .footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: .3s ease;
    font-family: 'Inter', sans-serif;
}
.card .footer a:hover {
    color: #5ABF35;
}

/* Alt Card (Register) */
.card.alt {
    position: absolute;
    top: 40px;
    right: -70px;
    z-index: 10;
    width: 100px;
    height: 100px;
    background: none;
    border-radius: 100%;
    box-shadow: none;
    padding: 0;
    transition: .3s ease;
    border: none;
}
.card.alt .toggle {
    position: relative;
    background: linear-gradient(135deg, #5ABF35, #00a65a);
    width: 100px;
    height: 100px;
    border-radius: 100%;
    box-shadow: 0 4px 16px rgba(90, 191, 53, 0.3);
    color: #ffffff;
    font-size: 42px;
    line-height: 100px;
    text-align: center;
    cursor: pointer;
}
.card.alt .toggle:before {
    content: '\f067';
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
    padding-top: 29px;
}
.card.alt .title,
.card.alt .input-container,
.card.alt .button-container {
    left: 100px;
    opacity: 0;
    visibility: hidden;
}
.card.alt .title {
    position: relative;
    border-color: #ffffff;
    color: #ffffff;
}
.card.alt .title .close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 60px;
    display: inline;
    color: #ffffff;
    font-size: 58px;
    font-weight: 400;
}
.card.alt .title .close:before {
    content: '\00d7';
}
.card.alt .input-container input {
    color: #ffffff;
}
.card.alt .input-container input:focus ~ label {
    color: #ffffff;
}
.card.alt .input-container input:focus ~ .bar:before,
.card.alt .input-container input:focus ~ .bar:after {
    background: #ffffff;
}
.card.alt .input-container input:valid ~ label {
    color: #ffffff;
}
.card.alt .input-container label {
    color: rgba(255, 255, 255, 0.8);
}
.card.alt .input-container .bar {
    background: rgba(255, 255, 255, 0.8);
}
.card.alt .button-container button {
    width: 100%;
    background: #ffffff;
    border-color: #ffffff;
}
.card.alt .button-container button span {
    color: #5ABF35;
}
.card.alt .button-container button:hover {
    background: rgba(255, 255, 255, 0.9);
}
.card.alt .button-container button:active:before,
.card.alt .button-container button:focus:before {
    display: none;
}

/* ============================================================
   Animations
   ============================================================ */
@-webkit-keyframes buttonFadeInUp {
    0% { bottom: 30px; opacity: 0; }
}
@keyframes buttonFadeInUp {
    0% { bottom: 30px; opacity: 0; }
}

/* ============================================================
   Utility Classes
   ============================================================ */
.error_txt {
    color: #ff6b6b;
    margin-left: 10%;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}
.red_error {
    text-align: center;
    color: #ff6b6b;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0 40px 16px;
    font-size: 14px;
}
.green_error {
    text-align: center;
    color: #5ABF35;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: rgba(90, 191, 53, 0.1);
    border: 1px solid rgba(90, 191, 53, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0 40px 16px;
}
.step_txt {
    margin-top: -48px;
    padding-left: 62px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Inter', sans-serif;
}
.select2-container--default .select2-selection--single {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.text_center {
    text-align: center !important;
}
.display_none_login {
    display: none;
}
.login_title {
    text-transform: capitalize;
    padding-left: 9px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
    font-family: 'Inter', sans-serif;
}
.margin_top7 {
    margin-top: 7px !important;
}
.margin_login_top {
    margin-top: 7px !important;
}
.padding_bottom_0 {
    padding-bottom: 0px;
}

/* Signup link */
.div_signup_link {
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 0px;
}
.div_signup_link a,
.div_signup_link_a {
    text-decoration: none !important;
    color: #5ABF35 !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Buy Now button (hidden in production) */
.custom_shadow {
    box-shadow: 0 4px 20px rgba(90, 191, 53, 0.3) !important;
    position: fixed;
    z-index: 999;
    inset-block-end: 5%;
    inset-inline-end: 79px;
    padding: 11px;
    font-weight: bold;
    border-radius: 12px;
}

/* Demo buttons */
.btn_demo {
    background: linear-gradient(135deg, #5ABF35, #00a65a) !important;
    border: 0px;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}
.btn_demo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 191, 53, 0.3);
}

/* Version number */
.pull-right {
    color: rgba(255, 255, 255, 0.2) !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

/* ============================================================
   Pin Login Overrides (dark theme)
   ============================================================ */
.pinlogin-field {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
}
.pinlogin-field:focus,
.pinlogin-field.active {
    border-color: #5ABF35 !important;
    background: rgba(90, 191, 53, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(90, 191, 53, 0.15) !important;
}

/* Fixed positioning buttons */
#codepen, #portfolio {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #5ABF35;
    width: 56px;
    height: 56px;
    border-radius: 100%;
    box-shadow: 0 4px 16px rgba(90, 191, 53, 0.3);
    transition: .3s ease;
    color: #ffffff;
    text-align: center;
}
#codepen i, #portfolio i {
    line-height: 56px;
}
#codepen:hover, #portfolio:hover {
    box-shadow: 0 8px 24px rgba(90, 191, 53, 0.4);
}
#portfolio {
    bottom: 96px;
    right: 36px;
    background: #5ABF35;
    width: 44px;
    height: 44px;
    animation: buttonFadeInUp 1s ease;
}
#portfolio i {
    line-height: 44px;
}

/* ============================================================
   Responsive — Mobile Login Fix
   ============================================================ */
@media (max-width: 480px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }
    body::before {
        width: 300px;
        height: 300px;
    }
    body::after {
        width: 250px;
        height: 250px;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .pen-title {
        margin-bottom: 18px;
    }
    .pen-title span {
        font-size: 36px !important;
    }
    .pen-title img {
        width: 52px !important;
        height: 52px !important;
    }
    .pen-title p {
        font-size: 11px !important;
    }
    .btn_login_pin_table {
        margin-bottom: 14px;
    }
    .btn_login_pin_type {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 10px;
    }
    .card {
        padding: 24px 0 28px 0;
        border-radius: 16px;
    }
    .card:first-child {
        height: 8px;
        border-radius: 16px 16px 0 0;
        margin: 0 6px;
    }
    .card .title {
        font-size: 18px;
        padding: 6px 0 6px 24px;
        margin: 0 0 4px;
    }
    .card .input-container {
        margin: 0 20px 6px;
    }
    .custom_margin {
        margin: 0 20px 14px !important;
    }
    .card .input-container input {
        height: 48px;
        font-size: 15px;
    }
    .card .input-container label {
        font-size: 14px;
        line-height: 50px;
    }
    .card .button-container {
        margin: 0 20px;
    }
    .card .button-container button {
        padding: 16px 0;
        font-size: 14px;
        border-radius: 12px;
    }
    .card .footer {
        margin: 20px 0 0;
        font-size: 13px;
    }
    .red_error,
    .green_error {
        margin: 0 20px 12px;
        padding: 10px 14px;
        font-size: 13px;
    }
    .error_txt {
        margin-left: 6%;
        font-size: 12px;
    }
    .step_txt {
        margin-top: -40px;
        padding-left: 36px;
        font-size: 13px;
    }
    .card.alt {
        top: 20px;
        right: -40px;
    }
    .card.alt .toggle {
        width: 60px;
        height: 60px;
        font-size: 28px;
        line-height: 60px;
    }
    .custom_shadow {
        inset-inline-end: 16px;
        inset-block-end: 3%;
    }
    .div_signup_link {
        font-size: 14px;
    }
    .pinlogin-field {
        width: 44px !important;
        height: 52px !important;
        font-size: 20px !important;
        border-radius: 10px !important;
        margin: 3px !important;
    }
}

@media (max-width: 360px) {
    body {
        padding: 10px;
        padding-top: 24px;
    }
    .pen-title span {
        font-size: 30px !important;
    }
    .pen-title img {
        width: 44px !important;
        height: 44px !important;
    }
    .btn_login_pin_type {
        padding: 8px 12px;
        font-size: 11px;
    }
    .card .input-container {
        margin: 0 14px 6px;
    }
    .card .button-container {
        margin: 0 14px;
    }
    .card .button-container button {
        padding: 14px 0;
        font-size: 13px;
    }
    .red_error,
    .green_error {
        margin: 0 14px 10px;
    }
    .pinlogin-field {
        width: 38px !important;
        height: 46px !important;
        font-size: 18px !important;
        margin: 2px !important;
    }
}