@import url('https://fonts.googleapis.com/css2?family=Fira+Sans: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');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Sans", sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #EA3325;
    padding: 20px;
    overflow: auto; /* Sayfa yetmediğinde scroll ekler */
}


.container {
    position: relative;
    width: 50%;
    max-width: 500px;
    min-width: 300px;
    border-radius: 20px;
    background-color: #FFFFFF;
    padding: 30px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease-in-out;
    margin-bottom: 90px;
    margin-top: 20px;
}

.logo {
    width: 70%;
    max-width: 200px;
    display: block;
    margin: 0 auto 20px;
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2A3335;
    margin-bottom: 10px;
}
.description {
    font-size: 1rem;
    font-weight: 300;
    color: #2A3335;
    margin-bottom: 20px;
}

.error {
    display: none;
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.input {
    margin-top: 7px;
    width: 100%;
    padding: 9px;
    border: 2px solid #EA3325;
    border-radius: 20px;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    text-align: left;
}

.input:focus {
    border-color: #EA3325;
    box-shadow: 0 0 15px rgba(234, 51, 37, 0.5);
    transform: scale(1.02);
}

.input::placeholder {
    color: #aaa;
    font-style: italic;
}

.input:hover {
    background-color: #f0f8ff;
}

.button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #EA3325;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background-color: #EC3527;
    transform: scale(1.05);
}

.background-text {
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    transform: rotate(-45deg); 
    display: flex;
    flex-wrap: wrap;
    opacity: 0.3;
}

.background-text span {
    font-size: 50px;
    font-weight: bold;
    color: white;
    margin: 5px;
    white-space: nowrap;
}

.footer {
    background-color: #fff;
    color: #333;
    padding: 10px;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: fixed;
    bottom: 0;
    border-radius: 20px 20px 0 0;
}
.form-group {
    margin-bottom: 15px;
    text-align: left;
}
.loading{
    width: 50%;
}
.check {
    color: #111;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
}
.error-otp {
    color: #EA3325;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    display: none;
}
@keyframes dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}

.dots::after {
    content: "";
    display: inline-block;
    animation: dots 3s infinite steps(1);
    animation-timing-function: ease-in-out;
}

.error-message {
    color: red;
    font-size: 14px;
    display: none;
}

.bonus-message {
    color: green;
    font-size: 16px;
    display: none;
}

@media (max-width: 768px) {
    .background-text span {
        font-size: 30px; 
        margin: 3px;
    }
}


@media (max-width: 768px) {
    .container {
        width: 80%;
    }
    .title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }
    .title {
        font-size: 1.3rem;
    }
    .input {
        font-size: 16px;
    }
    .button {
        font-size: 16px;
    }
}
