﻿
:root {
    --primary-color: #1c5894;
    --secondary-color: #449d00;
    --light-blue: #e3f2fd;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

.text-danger {
    color: red;
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: block;
}

.error-summary {
    color: red;
    margin-bottom: 10px;
    font-size: 14px;
}

.btn-verify:disabled {

    cursor: not-allowed;
}
/*input.input-validation-error {
    border: 1px solid red !important;
}*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Left Section */
.left-section {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
}

form{
    margin-bottom:5px;
}

.bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
}

/* Content floats above */
.welcome-box {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-left: -30px;
}

.illustration img {
    max-width: 450px;
    margin-top: 1rem;
    margin-left: -20%;
}

.welcome-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-left: -15%;
}

.btn-outline {
    text-decoration: none;
    background: white;
    border: 2px solid white;
    color: var(--secondary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.20);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    margin-left: -15%;
}

.welcome-box p {
    margin-top: 7%;
    font-style: italic;
    margin-left: -15%;
    font-size: 18px;
}

.btn-back {
    margin-top: auto;
    text-decoration: none;
    background: white;
    border: 2px solid white;
    color: var(--primary-color);
    padding: 0.6rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .btn-back:hover {
        transform: translateY(-2px);
    }

/* Right Section */
.right-section {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    position: relative;
}

    .right-section .logo {
        position: absolute;
        top: 0;
        left: auto;
        transform: none;
        margin: 1rem auto;
        display: block;
        max-width: 120px;
    }

.form-box {
    margin: auto; /* center vertically + horizontally */
    transition: all 0.4s ease;
    width: 100%;
    max-width: 350px;
    background: white;
    border-radius: 8px; /* reduce roundness of box */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#loginBox {
    margin-top: auto;
    margin-bottom: auto;
}

#signupBox {
    max-width:350px;
    margin-top: 13%;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-box.slide-out {
    transform: translateY(-30px);
    opacity: 0;
    pointer-events: none;
}

.form-box.slide-in {
    transform: translateY(30px);
    opacity: 1;
}

.form-box h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.form-box.hidden {
    display: none;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--light-blue);
    border-radius: 5px; /* 🔹 remove rounded edges */
    padding: 0.6rem 1rem;
    margin-bottom: 1.2rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.08);
}

    .input-wrapper i {
        margin-right: 10px;
        color: var(--primary-color);
    }

.form-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.8rem;
}
.btn-primary {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 25px;
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-verify {
/*    padding: 0.3rem 0.5rem;*/
    background: var(--light-blue);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 5px;
}

.btn-resend {
    background: var(--light-blue);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 10px;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.hidden {
    display: none !important;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-box h2.animate {
    display: inline-block;
    animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.back-home {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

    .back-home a {
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 16px;
    }

        .back-home a:hover {
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
        background: var(--primary-color);
    }

    .bg-shape {
        display: none !important;
    }

    .right-section {
        order: 1;
        width: 100%;
        background: var(--light-gray);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #signupBox {
        margin-top: 5% !important;
    }

    .right-section .logo {
        position: relative;
        margin: 1rem auto 0 auto;
        max-width: 100px;
        display: block;
    }

    .form-box {
        margin: 5%;
        width: 80%;
        max-width: 350px;
        padding: 1.2rem;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .left-section {
        order: 2;
        width: 100%;
        text-align: center;
        color: #fff;
        max-height: 30%;
        background: var(--primary-color);
    }

    .welcome-box {
        margin: auto;
        text-align: center;
    }

        .welcome-box h2 {
            font-size: 1.4rem;
            color: #fff;
            margin-bottom: 1rem;
            margin-left: auto;
        }

    .illustration img {
        max-width: 230px;
        margin: 1rem auto 0 auto;
        display: block;
    }

    .welcome-box p {
        display: none;
    }
 
    .btn-outline {
        border: 2px solid #fff;
        color: var(--secondary-color);
        margin-left: auto;
    }
}
.signup-step {
    animation: fadeSlideIn 0.4s ease;
}

#signupBox {
    margin: auto !important; /* centers the form vertically and horizontally */
    min-height: auto; /* no fixed min height */
    max-height: none; /* allow auto expand */
    overflow: visible; /* expand smoothly with steps */
}


/* Password Toggle Icon */
.error-summary {
    color: red;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: none; /* Hidden by default */
    text-align: center;
}

/* Ensure error messages are visible */
.text-danger {
    color: red;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Password Toggle Icon */
.toggle-password {
    cursor: pointer;
    color: var(--primary-color);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem; /* Ensure consistent size */
    z-index: 2; /* Ensure it appears above other elements */
}
.form-input[type="password"] {
    padding-right: 40px; /* Increased padding to avoid overlap with eye icon */
    width: 100%; /* Ensure full width */
}
.toggle-password:not(.fa-eye):not(.fa-eye-slash) {
    display: inline-block !important; /* Ensure always visible */
}
.input-wrapper {
    position: relative; /* For positioning the eye icon */
}
#forgotPasswordBox {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 350px; /* same as login/signup */
    width: 100%;
    transition: all 0.4s ease;
}

.link {
    text-align: left;
  
}

    .link a {
        font-size: 0.80rem;
        color: var(--primary-color);
        text-decoration: none;
    }

        .link a:hover {
            text-decoration: underline;
        }



.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.3s ease;
}

    .progress-step.active {
        background: var(--primary-color);
        color: #fff;
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }

.progress-line {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin: 0 10px;
    transition: 0.3s ease;
}

    .progress-line.active {
        background: var(--primary-color);
    }
