﻿body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-behavior: unset; /* Verhindert automatisches Scrollen */
    overscroll-behavior: none; /* Keine übermäßigen Scroll-Effekte */
    user-select: none; /*Verhindert die Textmarkierung */
    -webkit-user-select: none; /* Verhindert Textauswahl auf mobilen Safari */
    -ms-user-select: none; /* Für ältere Edge- und IE-Versionen */
    -moz-user-select: none; /* Für ältere Firefox-Versionen */
    touch-action: manipulation; /* Verhindert unerwünschte Standard-Touch-Effekte */
}

/* ---------- SABIT BAŞLIK (ÖZEL) ---------- */
.sticky-header {
    width: 100%;
    max-width: 768px;
    height: 60px;
    position: fixed;
    display: flex;
    top: 0;
    justify-content: center;
    align-items: center;
    background-color: #1976d2;
    color: #fff;
    padding: 5px;
    gap: 10px;
    box-sizing: border-box;
    z-index: 10;
}

    .sticky-header h3 {
        font-size: 1rem;
        font-weight: 600;
    }

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 80px; /* Ana menü için alt boşluk */
    min-height: calc(100vh - 80px); /* <-- 100vh yerine header boşluğunu çıkarıyoruz gereksiz yere scroll olamsini engellemek icin */
}

/* ---------- FORM GRUPLARI ---------- */
.form-group {
    position: relative;
    margin-top: 10px;
    margin-bottom: 26px;
    box-sizing: border-box;
}

    /* label (kaynak: register.css, biraz sadeleştirildi) */
    .form-group label {
        position: absolute;
        border-radius: 5px;
        border: solid 1px #999;
        top: -15px;
        left: 15px;
        background-color: #fff;
        padding: 0 6px;
        font-size: 14px;
        color: #333;
        z-index: 1;
        display: block;
    }

    .form-group input {
        width: 100%;
        border: 1px solid #999;
        border-radius: 5px;
        font-size: 16px;
        background-color: #fff;
        position: relative;
        z-index: 0; /* Input unter der Label */
    }

.form-control {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.code-input {
    font-size: 24px;
    text-align: center;
    letter-spacing: 20px;
    font-weight: bold;
    width: 100%;
    margin: 0 auto;
}

    /* 1) İnput’un kendi odak rengi (zorunlu) */
    .form-control:focus {
        border-color: #007bff;
    }
    /* 2) Aynı anda label’ın border’ı da mavi olsun */
    .form-group:has(.form-control:focus) label {
        background-color: #007bff;
        border: none;
        color: #fff;
    }

.description {
    gap: 3px;
    background-color: #fff;
    color: #000;
    border: solid 1px #ccc;
    border-radius: 5px;
    padding: 14px;
    font-size: 12px;
}

.emailDescription {
    border: 1px solid #999;
    background-color: #fff;
    color: #000;
    font-weight: bold;
    padding: 0 3px 0 3px;
    border-radius: 4px;
    font-family: monospace;
    display: inline-block; /* Breite passt sich an den Text an */
    max-width: fit-content; /* Breite auf den Inhalt beschränken */
}

.alert {
    max-width: 400px;
    margin-top:5px;
    padding: 10px;
    font-size: 12px;
    background-color: #fff;
    border-radius: 5px;
    text-align: left;
    display: none;
}

    .alert ul {
        padding-left: 10px;
        margin: 0;
    }

    .alert.success {
        color: green;
        border: 1px solid green;
    }

    .alert.error {
        color: red;
        border: 1px solid red;
    }

    .alert.show {
        display: block;
        opacity: 1;
    }

.input-wrapper {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 5px;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 40px;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- ÜST BUTON ÇUBUĞU basliyor ---------- */
.buttons-bar-ust {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.action-buttons-ust {
    display: flex;
    gap: 10px;
}
/*------------- ÜST BUTON ÇUBUĞU bitiyor ---------- */

/* ---------- ALT BUTON ÇUBUĞU basliyor ---------- */
.buttons-bar-alt {
    display: none;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.action-buttons-alt {
    display: flex;
    gap: 10px;
}
/*------------- ALT BUTON ÇUBUĞU bitiyor ---------- */