﻿html {
    height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

canvas {
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Form wrapper: Bootstrap ve floating-labels.css kurallarını ezer */
form.form-signin {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-radius: 15px !important;
    color: white !important;
    width: 100% !important;
    max-width: 480px !important;
    padding: 2rem 2.5rem !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important; /* wrapper padding yeterli, ekstra margin yok */
}

    /* Logo boyutu ekrana göre ölçeklenir */
    form.form-signin .logo {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

/* Sayfa wrapper: formu tam ortada tutar, flex-grow ile tüm boşluğu doldurur */
.signin-page-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
}

/* Küçük ekranlarda padding azaltılır */
@media (max-width: 480px) {
    form.form-signin {
        padding: 1.5rem 1.25rem !important;
        border-radius: 10px !important;
    }

    .signin-page-wrapper {
        padding: 1rem 0.75rem;
    }
}

/* Orta boy ekranlarda (tablet) */
@media (min-width: 481px) and (max-width: 768px) {
    form.form-signin {
        padding: 2rem 2rem !important;
    }
}
