/* Reset & Layout */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    background: #efefef;
}

.container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* min-height: 100vh; */
}

.content-logpage {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 4px 12px 7px rgba(0, 0, 0, 0.05);
    position: relative;
}

.left {
    padding: 40px 40px 40px 40px !important;
    flex: 1;
}

.right {
    padding: 40px 20px;
    flex: 1;
}

.heading {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.heading .highlight {
    color: #7dad3d;
}

.subtitle {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    min-height: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    border: 2px solid #76b034;
    border-radius: 999px;
    overflow: hidden;
    max-width: 400px;
    margin-bottom: 12px;
    background: #fff;
    position: relative;
    transition: border-color 0.2s;
}

.form-group .prefix {
    background: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    color: #111;
    cursor: default;
}

.form-group .input-colm {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    color: #111;
    background: #fff;
    outline: none;
}

.input-icon {
    display: flex;
    align-items: center;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: red;
    font-size: 1.3em;
    pointer-events: none;
    z-index: 2;
}

.form-group.input-error {
    border-color: red !important;
    animation: shakeX 0.4s;
}

.form-group.input-success {
    border-color: #4CAF50 !important;
}

.form-group .input.input-error {
    background: #fff;
}

.error-message {
    color: red;
    font-size: 0.97em;
    margin: 4px 0 12px 16px;
    min-height: 18px;
    display: block;
    opacity: 1;
    transition: opacity 0.2s;
}

.error-message.hide {
    opacity: 0;
}

.error-message.shake {
    animation: shakeX 0.4s;
}

@keyframes shakeX {

    10%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    80% {
        transform: translateX(4px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-7px);
    }

    40%,
    60% {
        transform: translateX(7px);
    }

    100% {
        transform: translateX(0);
    }
}

.submit-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #7dad3d;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.submit-btn:hover {
    background: #689132;
}

.btn-loader {
    margin-left: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #62843a, #4b6825, #314817);
}

.card-1 {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none !important;
    border-radius: 15px !important;
    padding: 24px;
    max-width: 320px;
    width: 100%;
    background: none !important;
    z-index: 1;
    position: relative;
}

.card-1 img {
    max-width: 105px;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 12px;
    background-color: white;
}

.card-1 h2 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 12px;
}

.card-1 p {
    font-size: 0.9rem;
    color: #c5c5c5;
    line-height: 1.4;
    margin: 0px;
}

/* OTP Section */
#otp-section {
    margin: 24px 0 0 0;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.otp-box {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #76b034;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.otp-box:focus {
    border-color: #4CAF50;
}

.otp-timer {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

#resend-btn {
    background: none;
    border: none;
    color: #76b034;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    border-radius: 6px;
    transition: background 0.2s;
    margin-left: 3px;
}

#resend-btn[disabled] {
    color: #bbb;
    cursor: not-allowed;
}

#resend-btn:not([disabled]):hover {
    background: #eefae6;
}

/* Back button */
.back-btn {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 44px;
    height: 44px;
    padding: 5px;
    z-index: 10;
    border: none;
    background: #6fd0445e;
    border-radius: 50%;
    /* box-shadow: 0 2px 8px #0001; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.15s, background 0.2s;
    outline: none;
}


.left {
    position: relative;
  }


.back-btn:hover,
.back-btn:focus {
    background: #eefae6;
    box-shadow: 0 4px 16px #76b03433;
}

.back-btn svg {
    display: block;
}

@media (min-width: 768px) {
    .content-logpage {
        flex-direction: row;
    }

    .left,
    .right {
        padding: 40px;
    }

    .right {
        border-left: 1px solid #e0e0e0;
    }
}


@media (max-width: 700px) {

    .content-logpage {
        border-radius: 12px;
    }

}