/* Nền đẹp chủ đề nông sản: */
body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', 'sans-serif';
    background: linear-gradient(rgba(54, 83, 20, 0.60), rgba(79, 166, 45, 0.65)),
        url('https://acihome.vn/uploads/15/quy-hoach-nong-trai-ket-hop-khu-nghi-duong-la-gi.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container đăng nhập: */
.login-container {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 4px 24px 0 rgba(33, 66, 20, 0.18);
    border-radius: 22px;
    max-width: 390px;
    width: 98%;
    padding: 36px 32px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: show-in 0.7s cubic-bezier(.47,1.64,.41,.8);
}

@keyframes show-in {
    from { opacity:0; transform: translateY(25px);}
    to { opacity:1; transform: translateY(0);}
}

.icon {
    font-size: 38px;
    color: #589f38;
    margin-bottom: 10px;
    margin-top: -12px;
    filter: drop-shadow(0 2px 4px #b0df9144);
}

h1 {
    color: #3d7422;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
}

.thongbao {
    background: #ffdbcc;
    color: #a64426;
    border-left: 5px solid #ff9240;
    border-radius: 6px;
    padding: 10px 18px;
    margin-bottom: 17px;
    font-size: 1rem;
    box-shadow: 0 2px 6px 0 #0001;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 13px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 12px 14px;
    border: 1.5px solid #c3e893;
    background: #f8fffa;
    border-radius: 7px;
    font-size: 1rem;
    transition: border 0.23s;
    color: #32491e;
    outline: none;
}
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border: 1.5px solid #a3ce61;
    background: #f3ffed;
}

.login-form button[type="submit"] {
    margin-top: 10px;
    background: linear-gradient(90deg, #6fc14c 65%, #fbbd3c 99%);
    color: white;
    border: none;
    border-radius: 7px;
    padding: 13px 0;
    font-size: 1.09rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px 0 #a9cf9a22;
    transition: background .18s, box-shadow .18s;
}
.login-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #57a23c 60%, #fcb94a 100%);
    box-shadow: 0 2px 10px #a0be7732;
}

.forgot-password {
    text-align: right;
    font-size: .96rem;
    margin-top: 4px;
}
.forgot-password a {
    color: #96b576;
    text-decoration: none;
    transition: color .2s;
}
.forgot-password a:hover {
    color: #7e5b15;
    text-decoration: underline;
}

.or-divider {
    margin: 22px 0 18px 0;
    font-weight: 600;
    color: #b9c892;
    width: 100%;
    text-align: center;
    position: relative;
}
.or-divider p {
    margin: 0;
    font-size: .97rem;
    background: #fff;
    display: inline-block;
    padding: 0 14px;
    position: relative;
    z-index: 1;
}
.or-divider:after,
.or-divider:before {
    content: '';
    height: 1.5px;
    background: #d9eabc;
    width: 44%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.or-divider:before { left: 0;}
.or-divider:after { right: 0;}

.social-btn {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang */
    margin-bottom: 11px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 1.07rem;
    color: #34450f;
    font-weight: 500;
    background: #f6f9f3;
    border: 1.5px solid #ebefeb;
    box-shadow: 0 2px 8px 0 #b2d9a31c;
    text-decoration: none;
    transition: background .18s, border .18s, box-shadow .18s;
    width: 100%; /* Đảm bảo nút chiếm toàn bộ chiều rộng */
}
.social-btn:hover {
    background: #e5ffd9;
    border-color: #8fd455;
    box-shadow: 0 3px 10px 0 #c9e9ba33;
}
.google-btn .icon-wrapper,
.facebook-btn .icon-wrapper {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px #b2b2b233;
}

.google-btn .icon-wrapper img {
    width: 22px; height: 22px; display: block;
}
.facebook-btn .icon-wrapper img {
    width: 22px; height: 22px; display: block;
}

.text-container {
    flex: 1;
}

.google-btn {
    border-color: #bfcfc1;
}
.facebook-btn {
    border-color: #a6c7e0;
}

.dk {
    margin-top: 22px;
    text-align: center;
    font-size: 1rem;
    color: #4b5e31;
}
.dk a {
    color: #cb8d27;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color .18s;
}
.dk a:hover {
    color: #a8670a;
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 40px; /* chừa chỗ cho icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}

.guest-btn {
    border-color: #bfcfc1; /* giống google */
    cursor: pointer;
}

/* icon giống style google */
.guest-btn .icon-wrapper {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px #b2b2b233;
}

.guest-btn i {
    font-size: 14px;
    color: #555;
}
.guest-form {
    width: 108%;
}


