/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content,
.modal-info-content {
    position: relative;
    background-image: linear-gradient(to bottom, #0097a7, #057a56);
    /* background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); */
    margin: 2% auto;
    width: 90%;
    max-width: 700px;
    /* border-radius: 15px; */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    /* overflow: hidden; */
    animation: modalAppear 0.4s ease-out;
}

.modal-info-content {
    background-image: linear-gradient(to bottom, #009274, #002C23);
    color: #EEFF41;
    margin-top: 30px;
    max-width: 540px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.shake {
    animation: shake 0.5s linear;
}

.modal-logo {
    display: block;
    margin: 0px auto 0 auto;
    width: 100px;
    height: auto;
}

.modal-logo img {
    margin-top: -55px;
}

.modal-header {
    padding: 0px 30px;
    /* background: rgba(0, 0, 0, 0.2); */
    display: flex;
    justify-content: space-between;
    color: #eeff41;
    justify-self: center;
}

.modal-title {
    font-size: clamp(0.775rem, 1.25vw + 0.1rem, 1.6rem);
    font-weight: 500;
}

.modal-large-title {
    font-size: clamp(1.275rem, 1.25vw + 0.1rem, 3.7rem);
    font-weight: 500;
}

.modal-close-btn {
    display: flex;
    align-items: end;
    justify-content: end;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 0px 30px 20px 30px;
}

.info-body {
    padding: 0px 30px 5px 45px;
}

.two-columns {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    display: grid;
}

.col-1 {
    grid-column-start: 1;
    grid-column-end: 2;
}

.col-2 {
    grid-column-start: 2;
    grid-column-end: 3;
}

.form-text {
    text-align: center;
    font-size: clamp(0.375rem, 1.25vw + 0.1rem, 1.25rem);
    color: #eeff41;
    padding: 0px;
    margin: 0px;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

.form-group-2-up {
    display: flex;
    flex-wrap: wrap;
    width: 65%;
    place-self: center;
    padding: 0px 0px 20px 0px;
    gap: 20px;
}

.form-group-2-up input {
    flex: 1;
}

.form-label {
    display: block;
    margin-top: 0px;
    color: white;
    font-weight: 300;
    font-family: 'Source Code Pro', sans-serif;
    font-size: clamp(0.375rem, 1.25vw + 0.1rem, .65rem);
}

.form-input {
    font-family: 'Source Code Pro', sans-serif;
    width: 60%;
    padding: 12px 15px;
    border: none;
    /* border-radius: 8px; */
    /* background: rgba(255, 255, 255, 0.1); */
    background: #615FFF;
    color: white;
    font-weight: 400;
    font-size: 1rem;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border: 1px solid #eeff41;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    /* background: rgba(255, 255, 255, 0.15); */
    border-color: #FFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
select.form-input {
    width: 65%;
}

.input-wrapper {
    position: relative;
    display: inline;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    font-size: 20px;
    padding: 8px 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #4d90fe;
}

.strength-meter {
    height: 5px;
    border-radius: 5px;
    margin-top: 10px;
    width: 65%;
    justify-self: center;
    background-color: #e1e5ee;
    overflow: hidden;
}

.strength-meter::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak::after {
    width: 33%;
    background-color: #ff4757;
}

.strength-medium::after {
    width: 66%;
    background-color: #ffa502;
}

.strength-strong::after {
    width: 100%;
    background-color: #2ed573;
}

.hint {
    font-size: clamp(0.3125rem, 0.74vw + 0.1rem, 0.8125rem);
    /* font-size: 14px; */
    color: #4CAF50;
    margin-top: 8px;
}


.submit-btn {
    font-family: 'Source Code Pro', sans-serif;
    width: 240px;
    padding: 14px;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 75px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a {
    color: #eeff41;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-switch {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

.success-message {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

/* Tabs for Login/Register */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: white;
    border-bottom: 3px solid #4CAF50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    text-align: center;
}

.red-button-modal {
    font-family: 'Source Code Pro', sans-serif;
    display: inline-flex;
    align-items: center;
    height: 32px;
    color: #fff;
    cursor: pointer;
    background: #CC0000;
    border-radius: 25px;
    padding: 10px 35px;
    margin: 15px 0px 0px 0px;
    line-height: 1rem;
    font-size: clamp(0.3125rem, 1.74vw + 0.1rem, 0.9125rem);
    justify-self: center;
    align-self: center;
    text-align: center;
}

.referral-code {
    padding: 0px;
    margin: 0px;
    font-size: clamp(0.3125rem, 1.74vw + 1.1rem, 0.6125rem);
}

.text-outline {
    -webkit-text-stroke-width: 0px;
    -webkit-text-stroke-color: black;
}

.text-body {
    font-family: 'Source Code Pro', sans-serif;
    line-height: 1.4rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-extra-large {
    font-size: clamp(1.375rem, 1.25vw + 1.1rem, 4.2rem);
    line-height: 2.3rem;
    font-weight: 600;
}

.text-large {
    font-size: clamp(.975rem, 1.25vw + 0.1rem, 3.2rem);
    font-weight: 300;
}

.text-bold {
    font-weight: 700;
}

.no-lead-space {
    padding-top: 0px;
    margin-top: 0px;
}

.inline-icon {
    vertical-align: middle;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-logo {
        width: 50px;
        height: auto;
    }

    .modal-logo img {
        position: fixed;
        width: 50px;
        height: auto;
    }

    .modal-body {
        padding: 10px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .red-button-modal {
        line-height: .6rem;
        padding: 5px 25px;
    }

    .form-group-2-up {
        width: 88%;
    }
    .form-input {
        width: 80%;
    }
    select.form-input {
        width: 89%;
    }
}