@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

* {
    margin: 0;
    padding: 0;
    font-family: 'calibri';
    box-sizing: border-box;
}

body {
    background: #000000;
}

.main-container {
    min-height: 100vh;
    min-width: 450px;
}

.centered-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    width: 400px;
    height: 480px;
    display: grid;
    position: relative;
}

.icon {
    position: absolute;
    width: 85px;
    font-size: 50px;
    display: grid;
    text-align: center; 
    line-height: 85px;
    height: 85px;
    place-content: center;
    border: 1px solid #2a2a2a;
    z-index: 1;
    justify-self: center;
    border-radius: 50%;
    background: #0e0e0e;
}

.fa {
    color: #a2a2a2;
}

form {
    flex-direction: column;
    padding: 25px 25px 10px;
    height: 440px;
    border-radius: 30px;
    background: rgba(19, 19, 19, 0.736);
    border: 1px solid rgba(255, 255, 255, 0.097);
    position: absolute;
    width: 100%;
    bottom: 0;
}

.title {
    position: relative;
    margin: 40px 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.msg {
    color: #fa2929;
    position: absolute;
    top: 25%;
}

/* 🌟 Chỉ dùng cho trang Reset Password */
.msg-reset {
    margin-top: -10px;      /* Giảm khoảng cách với icon nếu cần */
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    color: #00FF00;         /* Hoặc để màu động trong flash */
    position: static;       /* Không dùng absolute */
  }

.field {
    display: flex;
    position: relative;
    width: 100%;
}

.field .fa {
    position: absolute;
    font-size: 14px;
    right: 10px;
    bottom: 10px;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgb(14 14 14) inset;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #bababa !important;
}

form input {
    display: block;
    outline: none;
    width: 100%;
    border: none;
    font-size: 16px;
    color: #d2d2d2;
    margin: 25px 0 5px;
    caret-color: #cccccc;
    background: transparent;
    padding: 10px 25px 3px 0;
    border-bottom: 1px solid #404040;
}

.action {
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
}

.action label {
    cursor: pointer;
    color: #7d7d7d;
}

.action input {
    width: auto;
    margin: 0 8px 0 0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #9b9b9b;
}

.btn-container {
    padding: 20px;
    transition: .2s linear;
}
.btn-containerre {
    padding: 2px;
    transition: .2s linear;
}

#login-btn {
    padding: 5px 20px;
    border: none;
    background: rgb(25, 62, 97);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 15px;
    transition: .3s;
    margin: 25px 0;
}

#login-btn:hover {
    cursor: pointer;
}

.signup {
    color: rgb(70, 70, 70);
    margin-top: 10px;
}
.signupre {
    color: rgb(70, 70, 70);
    margin-top: 0px
}

.shift-left {
    transform: translateX(-120%);
}

.shift-right {
    transform: translateX(120%);
}

.shift-top {
    transform: translateY(-150%);
}

.shift-bottom {
    transform: translateY(150%);
}

.no-shift {
    transform: translate(0%, 0%);
}

.success-flash {
    color: #00FF00; /* Xanh lá cây */
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.alert-danger {
    color: #ff4d4d; /* Đỏ đẹp */
}

.alert-success {
    color: #00FF00; /* Xanh lá nếu thành công */
}
.alert-warning {
    color: #00FF00;  /* xanh lá cho "Please log in..." */
}
.error-flash {
    color: #ff4d4d; /* 🔴 Màu đỏ tươi */
    text-align: center;
    font-size: 14px;
    margin-top: 15px;     /* ✅ Cách dòng trên 5px */
    margin-bottom: 1px; /* ✅ Cách dòng dưới 10px */;
}




.form-container {
    position: relative;
  }

  
/* 🎯 Icon dùng riêng cho trang Reset Password */
.icon-reset {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .alert-info {
    color: #00FF00 !important;   /* Màu xanh dương sáng dễ đọc */
    background-color: transparent;
}