/* ✅ GLOBAL FIX (VERY IMPORTANT) */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: url("../images/urs_ccsr.jpg") no-repeat center center/cover;
    overflow-x: hidden; /* ✅ prevents side cutting */
}

/* Overlay (UNCHANGED) */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

/* ✅ WRAPPER */
.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin: 80px auto 30px;
    padding: 15px;
    text-align: center;
    color: #fff;
}

/* Logo */
.logo {
    width: 200px;
}

/* ✅ CARD */
.login-card {
    background: #fff;
    color: #000;
    width: 100%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

/* ❌ REMOVE extra padding that breaks layout */
/* .form-control { padding-right: 40px; } */

/* Old icon (kept) */
.input-icon {
    position: absolute;
    right: 12px;
    top: 38px;
    color: #999;
}

.forgot{
  font-size: 12px;
  text-decoration: none;
}

.default-accounts {
    font-size: 12px;
}

.reset {
    font-size: 13px;
    text-decoration: none;
}

.text-white-custom {
    color: #ffffff !important;
}

/* Titles */
.login-card h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.login-card .btn {
    font-weight: 500;
}

/* Input wrapper */
.field-wrap{
  position: relative;
}

/* ✅ FIXED INPUT WIDTH (MAIN FIX) */
.field-wrap input.form-control{
  width: 100%;
  padding-left: 40px;
  padding-right: 55px; /* reduced to avoid overflow */
}

/* Left icon */
.field-wrap .icon-left{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  font-size: 1.05rem;
}

/* Right icons */
.field-wrap .icons-right{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Red dots */
.field-wrap .dots-badge{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #dc3545;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

/* Eye icon */
.field-wrap .toggle-eye{
  cursor: pointer;
  color: #6c757d;
}

.field-wrap .toggle-eye:hover{
  color: #0d6efd;
}

/* Notification text */
.notif-text{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================== */
/* ✅ MOBILE FIX (FINAL) */
/* ===================================== */

@media (max-width: 576px) {

    .login-wrapper {
        max-width: 100%;
        margin: 20px auto;
        padding: 12px;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        border-radius: 16px;
    }

    .logo {
        width: 140px;
    }

    h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .form-control {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 1rem;
        padding: 12px;
    }

    /* ✅ ensure inputs NEVER overflow */
    .field-wrap input.form-control {
        width: 100%;
        padding-left: 38px;
        padding-right: 50px;
    }

}