﻿/* wwwroot/css/account.css */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.layout-container {
    display: flex;
    flex-direction: row; /* resim solda, içerik sağda */
    align-items: flex-start;
    justify-content: center; /* ortala */
    gap: 40px; /* resim ile kutu arası boşluk */
    height: 40rem;
}

.action-image {
    position: absolute;
    left: 15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    flex-shrink: 0;
}

    .action-image img {
        width: 100%;
        height: auto;
    }

.account-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 100%;
    max-height: 40rem;
    width: 22rem;
    text-align: center;
    margin: 0 auto;
}

.account-logo {
    margin-bottom: 0px; /* Logo ile başlık arası boşluk */
}

    .account-logo img {
        max-width: 300px; /* Logonun maksimum genişliği */
        height: auto;
    }

h1 {
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 24px;
}

p {
    color: #6c757d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-google-style {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px; /* Dikey padding azaltıldı */
    font-weight: 600;
    font-size: 14px;
    color: #3c4043; /* Google'ın metin rengi */
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .3s, border-color .3s;
    margin-top: 10px;
}

    .btn-google-style:hover {
        background-color: #f8f9fa; /* Hafif hover efekti */
        border-color: #d2d3d4;
    }

    .btn-google-style svg {
        width: 18px;
        height: 18px;
    }

.divider {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    line-height: 0.1em;
    margin: 30px 0;
}

    .divider span {
        background: #fff;
        padding: 0 10px;
        color: #6c757d;
        font-size: 14px;
    }

.text-danger {
    color: #dc3545;
    font-size: 12px;
    text-align: left;
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

.bottom-text {
    margin-top: 20px;
    font-size: 14px;
}

.terms-text {
    font-size: 12px;
    color: #868e96; /* Daha açık bir gri tonu */
    text-align: center;
    margin-bottom: 20px; /* Buton ile arasına boşluk koyar */
    line-height: 1.5; /* Satır aralığını artırır */
}

.terms-text a {
    color: #007bff; /* Linkleri ana buton rengiyle belirginleştirir */
    text-decoration: underline;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: none; /* Üzerine gelince alt çizgiyi kaldırır */
}

@media (max-width: 1690px) {
    .action-image {
        display: none;
    }
}


/* ==========================================================================
   MOBİL UYUMLULUK DÜZENLEMELERİ
   ========================================================================== */

@media (max-width: 480px) {
    body {
        /* Dikey ortalamayı kaldırıp normal akışa izin ver */
        display: block;
        align-items: normal;
        justify-content: normal;
        height: auto;
        padding-top: 2rem; /* Üstten boşluk */
        padding-bottom: 2rem; /* Alttan boşluk */
    }

    .layout-container {
        padding: 0 16px; /* ANA ÇÖZÜM: Konteynere sağdan ve soldan 16px boşluk ekle */
        height: auto;
    }

    .account-container {
        width: 100%; /* Kartın, boşluk bırakılmış parent'ının tamamını kaplamasını sağla */
        height: auto; /* Yüksekliği içeriğe göre otomatik ayarla */
        max-height: none; /* Sabit maksimum yüksekliği kaldır */
        padding: 30px 25px; /* İç boşlukları mobil için biraz azalt */
    }
}