﻿/* ============================================================
   Dilmandram – Register Page
   Path: ~/newregister/css/Register.css
   ============================================================ */

/* ---------- Body ---------- */
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #eaf5f0;
}

/* ============================================================
   BACKGROUND IMAGE  (full page cover)
   ============================================================ */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* ============================================================
   LEAF IMAGE  – fixed top-left corner only
   ============================================================ */
.leaf-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.leaf-img {
    width: 62%;
    height: auto;
    display: block;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.register-wrapper {
    position: relative;
    z-index: 1;
    width: 94%;
    max-width: 1100px;
    margin: 30px auto;
    /*height: 100%;*/
    padding: 25px 0px;
}

.register-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

/* ============================================================
   LEFT IMAGE PANEL
   ============================================================ */
.left-panel {
    height: 100%;
    min-height: 500px;
}

.left-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .left-panel {
        min-height: 220px;
    }

    .right-panel {
        padding: 22px 18px;
    }

    .leaf-img {
        width: 110px;
    }

    .leaf-wrapper {
        display: none; /* ← add this line */
    }
}

@media (max-width: 567px) {
    .register-wrapper {
        height: 100%;
    }

    .form-title {
        font-size: 18px !important;
    }
}

/* ============================================================
   RIGHT FORM PANEL
   ============================================================ */
.right-panel {
    padding: 32px 30px 28px;
}

/* ---------- Form Header ---------- */
.form-header {
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 0.85rem;
    color: #0d6a62;
    font-weight: 600;
    margin-bottom: 2px;
}

.form-title {
    font-size: 1.55rem;
    color: #1c1c1c;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-link {
    font-size: 0.82rem;
    color: #666666;
    margin-bottom: 0;
}

    .login-link a {
        color: #0d6a62;
        font-weight: 600;
        text-decoration: none;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

/* ---------- Required Star ---------- */
.requiredLable {
    color: #e53935;
    font-weight: 700;
    margin-left: 2px;
}

/* ---------- Labels ---------- */
.form-group label {
    font-size: 0.66rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 4px;
}

/* ---------- form-control ---------- */
.form-control {
    font-size: 0.83rem;
    height: 36px;
    padding: 6px 10px;
    border-color: #ccd8d4;
    border-radius: 5px;
    color: #1c1c1c;
}

    .form-control:focus {
        border-color: #0d6a62;
        box-shadow: 0 0 0 3px rgba(13, 106, 98, 0.13);
        outline: none;
    }

    .form-control::placeholder {
        color: #adb5b2;
        font-size: 0.8rem;
    }

/* ---------- Phone + Send OTP ---------- */
.phone-group {
    position: relative;
}

.send-otp-link {
    position: absolute;
    right: 6px;
    bottom: -17px;
    font-size: 0.7rem;
}

    .send-otp-link a {
        color: #0d6a62;
        font-weight: 700;
        text-decoration: none;
    }

        .send-otp-link a:hover {
            text-decoration: underline;
        }

/* ---------- Buttons ---------- */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

.btn-cancel {
    background: #ffffff;
    color: #0d6a62;
    border: 1.5px solid #0d6a62;
    padding: 7px 26px;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

    .btn-cancel:hover {
        background: #f0f8f7;
        color: #0d6a62;
    }

.btn-create {
    background: #0d6a62;
    color: #ffffff;
    border: none;
    padding: 8px 28px;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-create:hover {
        background: #0b5a54;
    }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .left-panel {
        min-height: 220px;
    }

    .right-panel {
        padding: 22px 18px;
    }

    .leaf-img {
        width: 110px;
    }
}


/* ============================================================
   OTP MODAL  – append to Register.css
   ============================================================ */

/* Overlay */
.otp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .otp-overlay.active {
        display: flex;
    }

/* Modal Box */
.otp-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 30px 28px;
    width: 340px;
    max-width: 94vw;
    position: relative;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    animation: otpFadeIn 0.25s ease;
}

@keyframes otpFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.otp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

    .otp-close:hover {
        color: #111;
    }

/* Icon area */
.otp-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
}

.otp-phone-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
}

.otp-lock-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.otp-dots-bar {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 5px 18px;
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

    .otp-dots-bar span {
        color: #ffffff;
        font-size: 0.6rem;
    }

/* Title */
.otp-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 6px;
}

.otp-subtitle {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* OTP Input Boxes */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.otp-box {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1c1c1c;
    border: 1.5px solid #ccd8d4;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #fff;
}

    .otp-box:focus {
        border-color: #0d6a62;
        box-shadow: 0 0 0 3px rgba(13, 106, 98, 0.13);
    }

/* Submit Button */
.otp-submit {
    width: 100%;
    padding: 12px;
    background: #0d6a62;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
}

    .otp-submit:hover {
        background: #0b5a54;
    }

/* Sweet Alert */
.toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
}

body > div.swal2-container.swal2-top-end.swal2-noanimation {
    z-index: 10002 !important;
}

button.swal2-confirm.swal2-styled {
    width: 70px;
}

body > div.swal2-container.swal2-center.swal2-noanimation {
    z-index: 10001;
}

.error {
    color: red !important;
}

.otp-Success {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 30px 28px;
    width: 288px;
    max-width: 94vw;
    position: relative;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    animation: otpFadeIn 0.25s ease;
}


/*-------------------------------------------------------------------------------------------BackGround Color Spinning--------------------------------------------------------------------------------------------------*/

.lodarbackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
}

.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-image {
    position: absolute;
    width: 105px;
    height: 105px;
    top: 6px;
    left: 7px;
}

/* Rotating border (not the image) */
.spinner-border {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 5px solid #b3b3b3;
    border-top-color: #6c18a4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.otp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Popup box */
.otp-success {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 320px;
    animation: scaleIn 0.4s ease;
}

/* Icon spacing */
.otp-icon {
    margin-bottom: 15px;
}

.check-wrapper {
    width: 55px;
    height: 55px; /* make it proper circle */
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* prevent overflow */
}

    /* Rotating gradient border */
    .check-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        padding: 4px;
        background: linear-gradient(0deg, #000000, #1eff1e);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: rotateBorder 2s linear infinite;
        /* Glow effect */
        box-shadow: 0 0 10px #90EE90, 0 0 20px #006400;
    }

/* Check image */
.check-img {
    width: 138%;
    position: relative;
    left: 48%;
    top: 0px;
    transform: translateX(-51%);
}

/* Title */
.otp-title {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
}

/* Subtitle */
.otp-subtitle {
    font-size: 14px;
    color: #555;
}

/* Animations */
@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
