﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-size: cover;
    overflow-x: hidden;
}

.background {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 0 12px; 
}

.form-box {
    background: #ffffff;
    padding: 60px 40px 120px 40px; 
    border-radius: 25px;
    min-height: 500px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

    .form-box:hover {
        transform: none;
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }

    .form-box .logo {
        max-width: 60%;
        height: auto;
        margin-bottom: 25px;
    }

    .form-box h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
        text-align: center;
    }

    .form-box .subtitle {
        font-size: 14px;
        color: #777;
        margin-bottom: 40px;
        text-align: center;
        padding: 0 10px;
    }

    .form-box input[type="tel"] {
        width: 100%; 
        padding: 16px 18px 16px 58px;
        margin-bottom: 30px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
        transition: border-color 0.3s, box-shadow 0.3s;
        box-sizing: border-box;
    }

        .form-box input[type="tel"]:focus {
            border-color: #d32f2f;
            box-shadow: 0 0 0 4px rgba(211,47,47,0.15);
            outline: none;
        }

.iti {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.iti__flag-container {
    left: 14px;
}

.iti--separate-dial-code .iti__selected-flag {
    border-radius: 5px 0 0 5px;
}

.form-box button {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s;
}

.live-date {
    position: absolute;
    bottom: 48px;
    left: 0;
    width: 100%;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.culture-links-bottom {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    padding: 0 8px;
}

    .culture-links-bottom span {
        cursor: pointer;
        color: #444;
        user-select: none;
    }

        .culture-links-bottom span.active {
            text-decoration: underline;
            font-weight: 700;
        }

        .culture-links-bottom span:hover {
            opacity: 0.8;
        }
#phone::placeholder {
    font-size: 0.8rem; 
    text-align: center; 
}
#phone-error {
    display: none;
    color: red;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: center;
}

.login-forgot-password {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

    .login-forgot-password a {
        font-size: 14px;
        color: #d32f2f;
        text-decoration: none;
    }

        .login-forgot-password a:hover {
            color: #b71c1c;
        }


/* Mobil düzen */
@media (max-width: 480px) {
    .form-box {
        padding: 40px 20px 140px 20px; 
        min-height: auto;
    }

        .form-box h1 {
            font-size: 20px;
        }

        .form-box .subtitle {
            font-size: 13px;
            margin-bottom: 20px;
        }

        .form-box input[type="tel"] {
            width: 100%;
            padding: 14px 14px 14px 54px; 
            margin-bottom: 30px;
        }

        .form-box button {
            font-size: 15px;
            padding: 14px 0;
            margin-top: 18px;
        }

        .form-box .logo {
            max-width: 70%;
        }

    .live-date {
        bottom: 72px; 
        font-size: 13px;
    }

    .culture-links-bottom {
        bottom: 18px;
        font-size: 0.72rem;
        gap: 6px;
        flex-wrap: wrap;
    }
    .login-forgot-password {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .login-forgot-password a {
        font-size: 14px;
        color: #d32f2f;
        text-decoration: none;
    }

        .login-forgot-password a:hover {
            color: #b71c1c;
        }
}
