/* 1. Cấu trúc nền & Layout */
body.page-template-page-login-template {
    min-height: 100vh;
    margin: 0;
}

/* Ẩn Admin Bar để trải nghiệm giống App */
#wpadminbar { display: none !important; }
.seaway-login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 15px;
	margin: 0 auto;
}

/* 2. Card đăng nhập */
.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e1e1e1;
}

.login-header {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.brand-title {
    color: #0d6efd;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.brand-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.login-body {
    padding: 30px;
}

/* 3. Form Elements (Override Flatsome Styles) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 8px;
}

.input-group-flex {
    display: flex;
    align-items: stretch;
}

.input-icon {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: #6c757d;
}

/* Input field styling */
.seaway-login-wrapper input[type="text"], 
.seaway-login-wrapper input[type="password"],
.seaway-login-wrapper input.form-control {
    width: 100%;
    height: 48px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 0 6px 6px 0 !important;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    background-color: #fff;
}

.seaway-login-wrapper input.form-control:focus {
    border-color: #0d6efd;
}

/* 4. Nút & Link */
.btn-submit {
    width: 100%;
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #0b5ed7;
    color: #fff;
}

.text-primary {
    color: #0d6efd;
    text-decoration: none;
}

.text-primary:hover {
    text-decoration: underline;
}

/* 5. Footer & Alerts */
.login-footer {
    background: #fcfcfc;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #6c757d;
}

.alert-box {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Utilities */
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }