﻿@import url('login.css');

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    background: #fdfdfd;
}

.main-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 70px;
    width: 100%;
}

.register-container {
    background: #fff;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 500px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.register-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

#registrationContainer {
    margin-top: 30px;
}

#otpContainer {
    margin-top: 100px;
}


.logo {
    width: 45px;
    height: 55px;
    object-fit: contain;
}

.input-group.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.input-group.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
}

.input-group.terms label {
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.input-group.terms label a {
    color: #397DFA;
    text-decoration: none;
}

.input-group.terms label a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent backdrop scrollbar */
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    /* Flex centering */
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    /* Remove padding from container */
    border-radius: 12px;
    width: 90%;
    /* Responsive width */
    max-width: 600px;
    max-height: 85vh;
    /* Fit in viewport */
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    /* Scroll ONLY the body */
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-content .close {
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-content .close:hover {
    color: #333;
}

.modal-buttons {
    margin: 0;
    /* logic moved to modal-footer */
}

/* Button refinements */
#acceptTerms {
    background-color: #397DFA;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#acceptTerms:hover {
    background-color: #2864d2;
}

#rejectTerms {
    background-color: #e9ecef;
    color: #495057;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#rejectTerms:hover {
    background-color: #dee2e6;
}

.terms-popup-link {
    color: #397DFA;
    text-decoration: none;
    cursor: pointer;
}

.terms-popup-link:hover {
    text-decoration: underline;
}

.tf {
    margin-bottom: 15px;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

.terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.strength-msg {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
}

.strength-weak {
    color: red;
}

.strength-medium {
    color: orange;
}

.strength-strong {
    color: green;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 35px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #555;
    user-select: none;
}

.toggle-password:hover {
    color: #333;
}

.secondary-btn {
    background-color: #6c757d !important;
    margin-top: 10px;
}

.secondary-btn:hover {
    background-color: #5a6268 !important;
}


body {
    height: auto !important;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .main-container {
        padding-top: 120px !important;

        padding-bottom: 50px;
        align-items: flex-start;
        display: block;

        min-height: auto;
    }


    #registrationContainer,
    #otpContainer {
        margin-top: 0 !important;
        margin-bottom: 40px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .register-container {
        width: 100%;
        max-width: 500px;
        padding: 30px 20px;
        margin: 0 auto;
    }

    .input-group.terms label {
        font-size: 0.85rem;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 25px 15px;
    }

    .logo {
        width: 35px;
        height: 45px;
    }

    .brand h2 {
        font-size: 1.2rem;
    }

    .main-container {
        padding-top: 70px;
    }
}