* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
    background-color: #000;
}

.hidden {
    display: none !important;
}

.container {
    position: relative;
    width: 100vw;
    overflow: hidden;
}

.main-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.header-form {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 3;
}

.logo-container {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-picture {
    max-width: 65%;
    width: 65%;
    z-index: 2;
}

.logo-picture img {
    width: 100%;
    height: auto;
}

.content-wrapper {
    width: 100%;
    padding-top: 10px;
    z-index: 3;
}

.content-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
}

.players-container {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.player-left, .player-right {
    width: 420px;
    z-index: 1;
    margin-top: 0;
}

.player-left img, .player-right img {
    width: 100%;
    height: 100%;
}

.form-container {
    max-width: 90%;
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slogan {
    width: 90%;
    margin-top: 12px;
    margin-bottom: 12px;
}

.slogan img {
    width: 100%;
}

.form-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
}

.form-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.form-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-content {
    width: 100%;
    padding: 0 8%;
    margin: auto;
    margin-top: 0;
    z-index: 3;
    position: relative;
}

.registration-form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.title-form {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 45px;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    background: linear-gradient(180deg, #cc3e23 12.06%, #641409 80.39%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 25px;
}

.des-form {
    position: relative;
    font-family: Inter;
    font-weight: 600;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #542009;
    text-align: center;
    margin-bottom: 32px;
    margin-top: 10px;
}

.input-wrapper {
    position: relative;
    aspect-ratio: 872/130;
    margin-bottom: 4vw;
}

.input-icon {
    position: absolute;
    left: 20px;
    height: calc(50% - 4px);
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.form-input {
    border: 1px solid #FBEA9C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100%;
    padding-left: 14%;
    height: 100%;
    position: relative;
    outline: none;
    border-radius: 12px;
    background: #542009;
    font-size: 3.2vw;
    font-weight: 300;
}

.form-input::placeholder {
    color: white;
    font-size: 3.2vw;
}

.form-input.error {
    box-shadow: 0 0 0 2px rgb(239 68 68);
    border-color: rgb(252 165 165);
}

.password-input {
    padding-right: 12vw;
}

.toggle-password {
    position: absolute;
    right: 3.5vw;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.toggle-password svg {
    width: 6vw;
    height: auto;
    color: #92877b;
}

.error-message {
    position: absolute;
    left: 4%;
    font-size: 2.8vw;
    bottom: -4vw;
    color: red;
}

.submit-btn-wrapper {
    position: absolute;
    margin-top: 40px;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -8%;
    width: 60%;
    height: auto;
}

.submit-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.submit-btn img {
    width: 100%;
    height: auto;
    position: relative;
    display: inline-block;
    overflow: hidden;
    animation: btn-scale-anim 1s ease-out infinite;
    filter: drop-shadow(0px 0px 3px #ded466);
    transition: transform 0.3s ease;
}

.submit-btn:disabled img {
    opacity: 0.5;
    animation: none !important;
}

@keyframes btn-scale-anim {
    0% {
        transform: scale(0.97);
        filter: drop-shadow(0px 0px 3px #ded466) brightness(1);
    }
    35% {
        transform: scale(1.05);
        filter: drop-shadow(0px 0px 7px #ded466) brightness(1.15);
    }
    45% {
        transform: scale(1.05);
        filter: drop-shadow(0px 0px 7px #ded466) brightness(1.15);
    }
    98% {
        transform: scale(0.95);
        filter: drop-shadow(0px 0px 3px #ded466) brightness(1);
    }
    100% {
        transform: scale(0.97);
        filter: drop-shadow(0px 0px 3px #ded466) brightness(1);
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #542009 inset !important;
    box-shadow: 0 0 0px 1000px #542009 inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white;
    transition: background-color 9999s ease-in-out 0s;
}

.slide-mobil {
    width: 100%;
    margin-top: 50px;
}

.slide-mobil .swiper-pagination {
    left: auto;
    right: 25%;
    width: auto;
    bottom: 50px;
}

.swiper-pagination-bullet {
    width: 20px;
    height: 4px;
    border-radius: 5px;
    background: #6026d2;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 50px;
    height: 4px;
    border-radius: 5px;
    background: #9e24f0;
}

.ios-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
}

.ios-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.ios-popup__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transform: translate3d(0, 0, 0);
    transition: transform 220ms ease, opacity 180ms ease;
}

.ios-popup__header {
    padding: 12px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #ffe6b5 100%);
}

.ios-popup__header p {
    font-size: 15px;
    font-weight: 600;
    color: #001402;
}

.ios-popup__content {
    padding: 12px 16px 16px;
    background: white;
}

.ios-popup__content p {
    font-size: 14px;
    line-height: 1.4;
    color: #001402;
}

.ios-popup__content b {
    font-weight: 600;
}

.ios-popup__status {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(0, 20, 2, 0.5);
}

.ios-progress {
    margin-top: 8px;
    height: 6px;
    width: 100%;
    border-radius: 9999px;
    background: rgba(0, 20, 2, 0.12);
    overflow: hidden;
}

.ios-progress__bar {
    height: 100%;
    border-radius: 9999px;
    background: #00a651;
    transition: width 220ms ease;
}

.ios-popup__buttons {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ios-btn {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.ios-btn--ghost {
    background: #f2f2f2;
    color: #001402;
}

.ios-btn--primary {
    background: #00a651;
    color: #fff;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-size: 14px;
    min-width: 200px;
    text-align: center;
    animation: fadeInOut 3s ease-in-out;
}

.toast.success {
    background: #10b981;
    color: white;
}

.toast.error {
    background: #ef4444;
    color: white;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    10%, 90% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (min-width: 500px) {
    .input-wrapper {
        margin-bottom: 20px;
    }

    .form-input, .form-input::placeholder {
        font-size: 20px;
    }

    .error-message {
        font-size: 13px;
        bottom: -17px;
    }

    .password-input {
        padding-right: 60px;
    }

    .toggle-password svg {
        width: 25px;
    }

    .submit-btn-wrapper {
        margin-bottom: -15%;
    }
}

@media (min-width: 768px) {
    .main-wrapper {
        min-height: 100vh;
        justify-content: center;
    }

    .logo-picture {
        width: 350px;
    }

    .form-container {
        width: 600px;
    }

    .slogan {
        width: 500px;
    }

    .form-content {
        padding: 0 10%;
    }

    .input-wrapper {
        aspect-ratio: 872/123;
        margin-bottom: 30px;
    }

    .form-input {
        border-radius: 24px;
    }

    .form-input, .form-input::placeholder {
        font-size: 20px;
    }

    .error-message {
        bottom: -22px;
    }

    .submit-btn-wrapper {
        bottom: -22px;
    }

    .player-left, .player-right {
        display: block;
    }

    .slide-mobil {
        display: none;
    }

    .form-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .player-left, .player-right {
        display: none;
    }

    .title-form {
        font-size: 26px;
        margin-bottom: 10px;
        margin-top: 16px;
    }

    .des-form {
        font-size: 13px;
        margin-bottom: 20px;
        margin-top: 24px;
        text-align: center;
    }

    .swiper-pagination-bullet {
        width: 30px !important;
        border-radius: 10px !important;
        height: 5px !important;
    }

    .swiper-pagination-bullet-active {
        background: #ff2400 !important;
    }
}

@media (min-width: 330px) {
    .form-input::placeholder {
        font-size: 16px;
    }
}

@media (max-width: 300px) {
    .form-input::placeholder {
        font-size: 16px;
    }
}
