@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-image: url("../../images/landing.webp");
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    backdrop-filter: blur(3px);
    margin: 0;
    padding: 0;
    min-height: 100vh
}

.wrapper {
    padding-top: 50px;
    position: relative;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    box-sizing: border-box;
    min-height: calc(100vh - 100px);
}

.error-message {
    color: red;
    background-color: #fdf2f2;
    border-radius: 4px;
    text-align: left;
}

.registration-container {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 70%;
}

.password-container {
    position: relative;
    display: block;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 60px;
}

.forgot-password-link a {
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.form-panel .error-message {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 2;
}

.help-panel {
    flex: 1;
    background: linear-gradient(135deg, #3794D2, #0f4c6e);
    color: #f8fafc;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.help-content {
    display: none;
}

.help-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.account-links a {
    color: #000000;
    font-weight: 600;
}

.form-panel {
    flex: 1.2;
    padding: 40px;
    background: #fff;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.progress-step {
    font-size: 0.9rem;
    color: #94a3b8;
    position: relative;
    font-weight: 600;
}

.progress-step.active {
    color: #3b82f6;
}

.input-box {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background-color: rgba(0,0,0,0.03);
}

.input-box label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

.input-box input {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background-color: rgba(0,0,0,0.03);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.next-btn, .submit-btn {
    background-color: #3b82f6;
    color: white;
    flex: 1;
    min-height: 40px;
}

.prev-btn.secondary {
    background-color: #e2e8f0;
    color: #334155;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    font-family: Lato, Arial,serif;
    padding-bottom: 10px;
    color: #000000;
    width: 100%;
}

footer ul {
    list-style: none;
    text-align: center;
}

footer ul a {
    color: inherit;
    text-decoration: none;
}

footer ul a:hover {
    opacity: 1;
    cursor: pointer;
}

footer > a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #000000;
    color: inherit;
}

footer > :hover {
    opacity: 0.7;
}

footer .list-inline-item {
    display: inline-block;
    margin-right: 50px;
}

footer .copyright {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #000000;
    margin-bottom: 0;
}

footer .copyright a {
    color: #000000;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .registration-container {
        flex-direction: column; /* Stacks the help panel and form vertically */
        margin: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* Move the form to the top so mobile users can take action immediately */
    .form-panel {
        order: 1;
        padding: 24px 20px;
    }

    /* Move help context to the bottom so it acts as secondary reading */
    .help-panel {
        order: 2;
        padding: 24px 20px;
        background: linear-gradient(135deg, #3794D2, #0f4c6e);
        border-top: 1px solid #334155;
    }

    /* Make progress text slightly smaller to fit narrow screens */
    .progress-bar {
        font-size: 0.8rem;
    }

    .btn-group {
        flex-direction: column-reverse; /* Puts 'Continue' on top of 'Back' for natural thumb reach */
    }

    .btn {
        width: 100%;
        padding: 14px; /* Larger hit target */
    }
}