* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #005c8f;  /* sadece düz zemin, asıl işi .bg-waves yapacak */
    overflow: hidden;
    color: #fff;
}


/* entERP tarzı PNG arkaplan */
.bg-waves {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #005c8f url('img/entererp-bg.png') no-repeat center center fixed;
    background-size: cover; /* ekranı doldur ama oranı bozma */
}

/* Eski pseudo dalgaları kapatalım (gerekirse) */
.bg-waves::before,
.bg-waves::after {
    content: none;
}


/* Orta kutu */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    text-align: center;
}

/* Logo */
.logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.logo-icon {
    position: relative;
}

/* SVG boyutu */
.logo-icon .logo-svg {
    width: 64px;
    height: auto;
    display: block;
}

.app-title {
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Asıl panel */
.login-panel {
    position: relative;
    margin-top: 18px;
    width: 360px;
    max-width: 90vw;
    padding: 45px 50px 40px;

    /* panel rengi */
    background: #1b7fa4;

    border-radius: 6px;

    /* hafif gölge */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);

    /* 🔹 BURASI YENİ – içeriği dikeyde ortaya alıyoruz */
    display: flex;
    flex-direction: column;
    justify-content: center;   /* form + buton grubu panelin ortasına gelir */
}



/* Üstteki ince beyaz çizgi */
.login-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffffff;
    border-radius: 6px 6px 0 0;
}

/* Form alanları */
.form-group {
    margin-bottom: 12px; /* ↓ parola – buton arası sıkılaşır */
    text-align: left;
}


.field-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}



.input-wrapper input {
    border: none;
    outline: none;
    flex: 1;
    height: 100%;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.input-wrapper input::placeholder {
    color: #aaa;
}



/* Giriş butonu */
.btn-login {
    width: 100%;
    border-radius: 999px;
    height: 44px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    margin-top: 4px;   /* 🔥 parola alanına yaklaştı */
    transition: all 0.2s ease;
}


.btn-login:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Hata mesajı */
.alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-align: left;
}

.alert-error {
    background: rgba(255, 65, 65, 0.9);
}

/* Alt copyright */
.footer-text {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 16px;
    text-align: center;
}

/* ==============================
   entERP tarzı giriş alanı
   ============================== */

/* Input kapsayıcı */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    height: 40px;
    border: 1px solid #d9e4f2;

    /* çok hafif gölge, entERP tarzı */
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);

    padding: 0 18px 0 64px;
    overflow: hidden;
}


/* Focus olunca mavi parlama */
.input-wrapper:focus-within {
    border-color: #35a4ff;

    /* tek, ince bir vurgu gölgesi */
    box-shadow: 0 0 0 1px rgba(53,164,255,0.6);
}


/* Sol taraftaki ikon çerçevesi */
.icon-circle {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8ea4bc;

    /* çember ve arka plan YOK */
    border: none;
    width: auto;
    height: auto;
    background: transparent;
}

/* ikon ile metin arasındaki dikey çizgi */
.input-wrapper::before {
    content: "";
    position: absolute;
    left: 46px;            /* ikonun biraz sağında */
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #dce5f1;   /* entERP'deki açık gri çizgi */
}


/* Input’un kendisi */
.input-wrapper input {
    border: none;
    outline: none;
    flex: 1;
    height: 100%;
    font-size: 14px;
    color: #333;
    background: transparent;

    /* solda ikon + çizgi padding’i kapsayıcıda olduğu için
       burada sadece çok az boşluk bırakıyoruz */
    padding-left: 4px;
    padding-right: 46px;   /* sağdaki göz ikonu için boşluk */
    min-width: 0;
}

.input-wrapper input::placeholder {
    color: #b3c0d4;
}


/* Sağdaki göz ikonu çerçevesi */
.eye-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #d9e4f2;
    background: rgba(255,255,255,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #8796af;
    cursor: pointer;
}

.eye-icon:hover {
    background: #f3f6fb;
}



