/* =========================
   DESKTOP STYLES (GLOBAL)
   ========================= */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #618a5c, #9dbf87, #7ca977, #4b7345);
    background-image:
        radial-gradient(circle at 30% 40%, rgba(90, 130, 90, 0.8), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(80, 120, 80, 0.8), transparent 50%);
    background-blend-mode: overlay;
    background-size: cover;
    color: #333;
    height: 100vh;
    padding-top: 20px;
    background-attachment: fixed;
    font-family: Helvetica, Arial, sans-serif;
}

.logo {
    display: flex;
    justify-content: center;
    transform: translateY(-4px);
}

.logo img {
    width: 300px;
    height: auto;
}

/* Kayıt Ol Formunun Ortalanması */
.register-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
}

/* Kayıt Kartı */
.register-container {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.register-container h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #004d00;
    /* Başlık rengi */
}

/* Form Etiketleri ve Giriş Kutuları */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #004d00;
    /* Etiket rengi */
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #004d00;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.2);
    color: #004d00;
    /* Input metin rengi */
}

/* Veri girildiğinde ve otomatik doldurma aktif olduğunda arka plan ve yazı rengi */
.form-group input:focus,
.form-group input:not(:placeholder-shown),
input:-webkit-autofill {
    background-color: rgba(255, 255, 255, 0.3) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.3) inset;
    -webkit-text-fill-color: #004d00 !important;
    border-color: #004d00;
    outline: none;
}

/* Placeholder renkleri */
::placeholder {
    color: #4a634a;
    /* Placeholder rengi */
    opacity: 1;
}

:-ms-input-placeholder {
    /* IE 10+ için */
    color: #4a634a;
}

::-ms-input-placeholder {
    /* Edge için */
    color: #4a634a;
}

/* Kayıt Ol Butonu */
.btn-register {
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #004d00;
    border: 1px solid #004d00;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
}

.btn-register:hover {
    background-color: #004d00;
    color: white;
}

/* Ek Bilgi Metinleri */
.email-info,
.password-info {
    font-size: 14px;
    color: #004d00;
    /* Bilgi metinleri rengi */
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #004d00;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
.login-link {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #004d00;
}

.login-link a {
    color: #004d00;
    text-decoration: underline;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #003300;
}

/* Mobil Cihazlar İçin Ayarlar */
@media (max-width: 768px) {
    .register-container {
        width: 90%;
        padding: 20px;
    }

    footer {
        position: relative;
        padding: 10px;
    }
}

/* =====================================
   MOBILE RESPONSIVE STYLES (max-width: 768px)
   ===================================== */
@media (max-width: 768px) {

    /* Genel Ayarlar */
    html,
    body {
        width: 100%;
        min-width: 100% !important;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        font-size: 14px;
        overflow-x: hidden;
    }

    /* Kayıt Ol Bölümü (register-section) */
    .register-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        width: 100%;
    }

    /* Kayıt Kartı (register-container) – Ekranın tamamını kaplayacak şekilde */
    .register-container {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 10;
        box-shadow: none;
        text-align: center;
        box-sizing: border-box;
    }

    /* Başlık */
    .register-container h2 {
        font-size: calc(20px + 1vw);
        margin-bottom: 20px;
        color: #004d00;
    }

    /* Form Grup Ayarları */
    .form-group {
        margin-bottom: 15px;
        text-align: left;
        width: 100%;
    }

    .form-group label {
        font-size: calc(14px + 0.5vw);
        margin-bottom: 6px;
        color: #004d00;
        display: block;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        font-size: calc(14px + 0.5vw);
        border: 1px solid #004d00;
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.2);
        color: #004d00;
        box-sizing: border-box;
    }

    /* Placeholder Renkleri */
    ::placeholder {
        color: #4a634a;
        opacity: 1;
    }

    :-ms-input-placeholder {
        color: #4a634a;
    }

    ::-ms-input-placeholder {
        color: #4a634a;
    }

    /* Kayıt Ol Butonu */
    .btn-register {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: calc(16px + 1vw);
        margin-top: 15px;
        border: 1px solid #004d00;
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.1);
        color: #004d00;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        box-sizing: border-box;
    }

    .btn-register:hover {
        background-color: #004d00;
        color: white;
    }

    /* Ek Bilgi Metinleri (email-info, password-info) */
    .email-info,
    .password-info {
        font-size: calc(12px + 0.5vw);
        margin-top: 5px;
        color: #004d00;
    }

    /* Footer */
    footer {
        position: relative;
        padding: 10px;
        font-size: calc(12px + 0.5vw);
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}