/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom right, #eef2f3, #cfd9df);
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container đăng nhập */
.login-container {
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(12px);
    margin: 40px;
}

.login-container h2 {
    margin-bottom: 30px;
    font-size: 30px;
    color: #2c3e50;
}
/* Đăng nhập bằng Google */
.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid #ccc;
    background-color: #fff;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.google-btn i {
    color: #db4437;
    font-size: 16px;
}

.google-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Form group */
.login-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.login-form input {
    background: #f1f5f9;
    border: 1px solid #ccd6dd;
    font-size: 15px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
}

.login-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.25);
}

/* Nút đăng nhập */
.login-form button {
    background: linear-gradient(to right, #007bff, #0056b3);
    border: none;
    font-size: 16px;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
}

.login-form button:hover {
    background: linear-gradient(to right, #0056b3, #003f7f);
}

/* Link phụ */
.form-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.form-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Thông báo lỗi */
p.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
}

/* Bố cục remember + forgot password */
    .remember-forgot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        margin-bottom: 25px;
        color: #555;
        flex-wrap: wrap;
    }

    .remember-forgot .remember-me {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        cursor: pointer;
    }

    .remember-forgot input[type="checkbox"] {
        accent-color: #007bff;
        width: 16px;
        height: 16px;
    }

    .remember-forgot .forgot-password {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

    .remember-forgot .forgot-password:hover {
        text-decoration: underline;
    }
    
/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-container h2 {
        font-size: 24px;
    }

    .login-form button {
        font-size: 15px;
    }

    .google-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}
.register-link{
    color: #4D403D;
}