﻿/* ===============================
   RESET
================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    color: white;
}

/* ===============================
   BACKGROUND
================================*/
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(120,0,0,0.65));
    z-index: -1;
}

/* ===============================
   LAYOUT
================================*/
.change-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.change-card {
    width: 420px;
    padding: 45px 40px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 0, 0.35);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.35), 0 0 60px rgba(255, 0, 0, 0.15);
    animation: fadeIn 0.8s ease;
}

    .change-card h2 {
        text-align: center;
        letter-spacing: 3px;
        color: #ff2b2b;
        margin-bottom: 8px;
    }

.sub {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 30px;
}

/* ===============================
   INPUT BOXES (Email & Password)
================================*/
.input-box, .password-box {
    position: relative;
    margin-bottom: 18px;
}

/* Kiểu dáng chung cho các input */
input {
    width: 100%;
    padding: 14px 15px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    outline: none;
    color: white;
    font-size: 15px;
    transition: 0.3s;
}

    /* Focus effect */
    input:focus {
        border-color: #ff2b2b;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    }

    input::placeholder {
        color: #bbb;
    }

/* Tăng padding phải cho password để tránh đè icon mắt */
.password-box input {
    padding-right: 45px;
}

/* Icon mắt */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

    .toggle-password:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

/* ===============================
   BUTTON
================================*/
.btn-change {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg,#ff0000,#b30000);
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.35s;
}

    .btn-change:hover {
        background: linear-gradient(90deg,#ff2b2b,#ff0000);
        box-shadow: 0 0 18px rgba(255,0,0,0.7);
        transform: translateY(-2px);
    }

/* ===============================
   LINKS
================================*/
.change-card form a {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #ff2e2e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

    .change-card form a:hover {
        color: #ffffff;
        text-shadow: 0 0 8px #ff2e2e;
    }

/* ===============================
   ANIMATION & RESPONSIVE
================================*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    .change-card {
        width: 90%;
        padding: 35px 25px;
    }
}
.alert-error {
    color: #ff2b2b;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 14px;
}

.alert-success {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 14px;
}

/* Link Quên mật khẩu hiện tại */
.forgot-password-link {
    display: flex; 
    justify-content: flex-end; 
    width: 100%; 
    margin-top: -25px; 
    margin-bottom: 5px; 
}

/* Định dạng thẻ a bên trong */
.forgot-password-inline {
    font-size: 13px;
    color: #ff4d4d;
    text-decoration: none;
    transition: .25s;
}

    .forgot-password-inline:hover {
        color: white;
        text-decoration: underline;
    }


/* Link quay lại Login */
.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #ff2e2e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

    .back-link:hover {
        color: #ffffff;
        text-shadow: 0 0 8px #ff2e2e;
    }
