:root {
    --purple: #67418c;
    --navyBlue: #223d79;
}

.btn1,
.btn1:link,
.btn1:visited {
    color: var(--lightGray);
    border: 2px solid var(--purple);
    background-color: var(--purple);
    text-shadow: none;
}

.btn1:hover,
.btn1:focus {
    background-color: var(--lightGray);
    border-color: var(--lightGray);
    color: var(--purple);
}

body {
    padding-top: 0;
    background-image: url("/images/club/club_bg.png");
    background-repeat: repeat;
    background-size: auto 100%;
    min-height: 100vh;
}

.clubContainer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box !important;
}

.clubHeader {
    background-color: var(--purple);
    color: white;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

.clubHeader .clubContainer {
    background-image: url("/images/club/header.jpg");
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
}

.clubHeader .clubContainer .clubLogo {
    background-image: url("/images/club/club.png");
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    min-height: 180px;
    width: 40%;
    display: block;
}

.clubBody {
    margin-top: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #d7cbe1;
}

.clubBtn,
.clubBtn:link,
.clubBtn:visited {
    margin: 8% 5%;
    font-size: 1.2rem;
    width: 25%;
    text-align: center;
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    padding-top: 26%;
    font-weight: bold;
    transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
    color: var(--purple);
}

.clubBtn:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.clubBanner {
    border-radius: 15px;
    padding: 20px;
    background-color: var(--green);
    background-image: url("/images/club/phone.png");
    background-position: 10% center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 30px;
    color: white;
}
.clubBanner h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.clubBanner > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 80%;
}

.clubBanner > div p {
    width: 50%;
    padding: 10px;
    padding-right: 18px;
    position: relative;
    font-size: 0.8rem;
}

.clubBanner > div p::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    right: 5px;
    top: 14px;
    background-color: white;
    position: absolute;
    border-radius: 50%;
}

.clubIcons {
    background-color: #faf9fb;
    margin-top: 30px;
    border-radius: 15px;
    padding: 15px;
    color: var(--purple);
    text-align: center;
}

.clubIcons h3 {
    color: var(--purple);
    margin: 20px 0;
    font-size: 1.6rem;
}

.clubIcons > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 50px;
}

.clubIcons > div span {
    width: 33%;
    height: 140px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 23%;
    padding-top: 70px;
    font-size: 0.85rem;
    color: var(--darkGray);
    font-weight: normal;
}

.downClub {
    background-color: #ec8a3f;
    padding: 30px 50px;
    margin: 20px auto;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.downClub > * {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.downClub .MDC {
    flex: none;
    width: 50%;
    padding: 10px 0;
    color: var(--purple);
    font-size: 0.8rem;
}

.downClub .RDC span {
    aspect-ratio: 4/4;
    width: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    background-color: #e07d44;
    border-radius: 5px;
}

.downClub .MDC {
    align-items: start;
}
.downClub .MDC h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.clubFotter {
    background-color: #b5a3c7;
    margin-top: 30px;
}

.clubFotter .clubContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.clubFotter .clubContainer > * {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 10px 0;
}

.clubFotter .clubContainer .clubFooterContent {
    flex: none;
    width: 65%;
    padding: 10px 0;
    color: var(--navyBlue);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-weight: bold;
    text-align: center;
}

.clubFotter .clubFooterLogo {
    aspect-ratio: 3/2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 30px 20px;
}

.clubFotter .clubContainer .clubFooterContent > * {
    margin: 10px 0;
}

.clubFooterContent .btns {
    display: flex;
    color: white;
    font-size: 1.3rem;
    font-weight: normal;
}
.clubFooterContent .btns > * {
    color: white;
    margin: 0 20px;
}

.clubFooterContent .btns > *:hover {
    color: var(--purple);
}

#loginOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
}

#loginForm {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 360px;
    max-width: 90vw;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

body.modal-open {
    overflow: hidden;
}

#loginOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
}

#loginForm {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #e2dee7;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    width: 360px;
    max-width: 90vw;
    padding: 2rem;
    flex-direction: column;
    direction: rtl;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.close-btn:hover {
    background: #f3f4f6;
}

.logo-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 22px;
    color: #555;
}

.form-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
    color: var(--purple);
}

.form-sub {
    font-size: 13px;
    color: var(--navyBlue);
    text-align: center;
    margin-bottom: 20px;
}

#stepMain {
    text-align: center;
}

.field {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px;
    margin-bottom: 14px;
    align-items: center;
}
.field label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}
.field input {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 14px;
    padding: 0 12px;
    outline: none;
}
.field input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.forgot {
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    height: 42px;
    margin-top: 1rem;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-login:hover {
    opacity: 0.85;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.1rem 0;
}
.divider span {
    font-size: 12px;
    color: #bbb;
    white-space: nowrap;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.btn-google {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-google:hover {
    background: #f3f4f6;
}

.footer-txt {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 1.25rem;
}
.footer-txt a {
    color: #555;
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}

.error-box {
    color: #e53e3e;
    font-size: 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    text-align: right;
}

.clubHeader .clubContainer,
.clubFotter .clubContainer {
    max-width: 1000px;
}

/* ============================[MEDIA]============================ */

@media only screen and (min-width: 769px) and (max-width: 870px) {
    .clubContainer {
        width: 80vw;
    }

    .clubFotter .clubContainer .clubFooterContent {
        font-size: 0.8rem;
    }
    .clubFotter .clubFooterLogo {
        margin: 20px 10px;
    }
    .clubHeader .clubContainer,
    .clubFotter .clubContainer {
        width: 90vw;
    }
    .clubHeader .clubContainer .clubLogo {
        min-height: 120px;
    }
}

@media only screen and (max-width: 768px) {
    .clubContainer {
        width: 75vw;
    }
    .clubHeader .clubContainer,
    .clubFotter .clubContainer {
        width: 90vw;
    }

    .clubFotter .clubContainer {
        flex-wrap: wrap;
    }

    .clubFotter .clubContainer .clubFooterContent {
        order: 1;
        width: 100%;
        font-size: 0.7rem;
    }
    .clubFotter .clubContainer .clubFooterLogo {
        order: 2;
        width: 30%;
        background-size: 60%;
        margin: 0 5px;
    }

    .clubHeader .clubContainer .clubLogo {
        min-height: 100px;
    }

    .clubBtn,
    .clubBtn:link,
    .clubBtn:visited {
        font-size: 0.8rem;
    }

    .clubBanner h3 {
        font-size: 1.2rem;
    }
    .clubBanner > div p {
        font-size: 0.6rem;
        padding: 0 14px 10px 10px;
    }
    .clubBanner > div p::before {
        width: 5px;
        height: 5px;
        top: 3px;
    }
    .clubIcons h3 {
        font-size: 1rem;
    }
    .clubIcons > div span {
        padding-top: 60px;
        font-size: 0.7rem;
        height: 80px;
    }

    .downClub {
        padding: 20px 15px;
    }

    .downClub .MDC {
        width: 65%;
        padding: 10px;
    }

    .downClub .MDC h3 {
        font-size: 0.8rem;
    }

    .downClub .MDC p {
        font-size: 0.7rem;
    }
    .downClub .RDC span {
        width: 90%;
    }
    .downClub .LDC .btn {
        font-size: 0.7rem;
    }
}
