﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf6ff 0%, #f8fbff 100%);
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center; /* center vertically */
    overflow: hidden;
}

.alert {
    position: fixed; /* above everything */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    font-size: 1.4rem !important;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    opacity: 0;
    background: #fff;
    animation: popupFadeIn 0.6s ease forwards;
}

/* Popup animations */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -48%) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

.alert.hide {
    animation: popupFadeOut 0.45s ease forwards;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    padding: 20px;
    box-sizing: border-box;
}



.card {
    color: #fff;
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    display: flex;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.wave svg {
    animation: waveMotion 2.5s ease-in-out infinite; /* Speed increased */
}

@keyframes waveMotion {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes waveMotion {
    0% {
        transform: translateY(0) scaleX(1);
    }

    50% {
        transform: translateY(5px) scaleX(1.02);
    }

    100% {
        transform: translateY(0) scaleX(1);
    }
}

.left-panel {
    flex: 1;
    padding: 40px;
    padding-top: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

    .left-panel .wave {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 150px;
        z-index: 0;
    }

        .left-panel .wave svg path {
            fill: url(#greenWaveGradient);
        }

    .left-panel h2 {
        margin-top: 0;
        font-size: 28px;
        color: #333;
        z-index: 1;
        position: relative;
    }

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

    .form-row input,
    textarea {
        flex: 1;
        padding: 12px 15px;
        border-radius: 10px;
        border: 1px solid #ccc;
        font-size: 14px;
        transition: all 0.3s ease;
    }

textarea {
    resize: vertical;
    min-height: 100px;
}

    .form-row input:focus,
    textarea:focus {
        border-color: #6c63ff;
        outline: none;
        box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
    }

.form-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

p {
    color: black;
}

a {
    text-decoration: none;
}


/*#btnSubmit {
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 64, 88, 0.8);
    color: white;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 114, 132, 0.4);
    transition: all 0.3s ease;
}

    #btnSubmit:hover {
        background: #ff4757;
        box-shadow: 0 4px 15px rgba(255, 114, 132, 0.4);
        transform: translateY(-4px);
    }*/

#btnSendOTP {
    padding: 6px 16px;
    width: 116px !important;
    border: none;
    border-radius: 30px;
    background: rgba(255, 64, 88, 0.8);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 114, 132, 0.4);
    transition: all 0.3s ease;
}

    #btnSendOTP:hover {
        background: #ff4757;
        box-shadow: 0 4px 15px rgba(255, 114, 132, 0.4);
        /*        transform: translateY(-4px);
*/
    }
/* New stylish button style */
#btnSubmit {
    padding: 10px 10px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 64, 88, 0.8);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}



    /* Hover effect: gradient shift, scale, shadow */
    #btnSubmit:hover {
        background: #ff4757;
        transform: scale(1.08);
    }

    /* Optional: animated shine effect */
    #btnSubmit::after {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-20deg);
        transition: none;
    }

    #btnSubmit:hover::after,
    #btnSendOTP:hover::after {
        animation: btnShine 0.7s forwards;
    }

@keyframes btnShine {
    0% {
        left: -75%;
    }

    100% {
        left: 130%;
    }
}

.eye-icon {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: black;
}

.otp-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

    .otp-container .form-control.with-btn {
        width: 100%;
        padding-right: 140px; /* Space for button inside */
        box-sizing: border-box;
    }

.btn-send-inside {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 64, 88, 0.8);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 114, 132, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

    .btn-send-inside:hover {
        background: #ff4757;
        transform: translateY(-50%) scale(1.05);
    }


/* Hide the original button */
.d-none {
    display: none;
}


.right-panel {
    width: 300px;
    background: linear-gradient(to bottom right, #ededed, #e6c8d2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s forwards 0.2s;
}

    /* .right-panel img {
            width: 100%;
            max-width: 180px;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }*/

    .right-panel p {
        font-size: 14px;
        color: #555;
        line-height: 1.6;
        margin: 0;
        padding: 0 10px;
    }


    .right-panel h3 {
        margin-top: 20px;
        font-size: 1.2rem;
        color: #333;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .card {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }

    .right-panel {
        width: auto;
        padding: 20px;
        height: auto;
    }

    .left-panel {
        order: 0;
    }
}

@media (max-width: 900px) {
    .right-panel p {
        text-align: center;
        padding: 10px 15px;
        font-size: 15px;
    }
}

.password-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.input-container {
    position: relative;
    flex: 1 1 100%;
    min-width: 250px;
}

    .input-container input {
        width: 100%;
        padding: 12px 40px 12px 15px; /* padding-right for icon */
        border-radius: 10px;
        border: 1px solid #ccc;
        font-size: 14px;
        box-sizing: border-box;
    }

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #333;
}

@media (min-width: 768px) {
    .input-container {
        flex: 1 1 calc(50% - 10px);
    }
}


@media (min-width: 1024px) {
    .container {
        min-height: 100vh;
        display: flex;
        align-items: center; /* vertical centering */
        justify-content: center; /* horizontal centering */
        padding: 20px;
        box-sizing: border-box;
        zoom: 90%
    }
}