/* ==========================================================
   BanglaTrip BBMS - Login Page Styles (Travel Themed)
   Raw CSS - no framework
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand-primary: #0d6e6e;
    --brand-primary-dark: #084c4c;
    --brand-accent: #f2a93b;
    --brand-dark: #0b1f2a;
    --text-light: #f4f7f6;
    --error-bg: #fdecea;
    --error-text: #b3261e;
}

body {
    font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--brand-dark);
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ---------- LEFT: Travel visual side ---------- */
.login-visual {
    position: relative;
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: var(--text-light);
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(11,31,42,0.85), rgba(13,110,110,0.85)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800"><path d="M0 400 Q200 300 400 400 T800 400" stroke="%23ffffff22" stroke-width="2" fill="none"/></svg>');
    background-size: cover;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(242,169,59,0.15) 0, transparent 40%),
                       radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0, transparent 40%);
}

.plane-icon {
    font-size: 42px;
    margin-bottom: 18px;
    display: inline-block;
    transform: rotate(-15deg);
}

.login-visual h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.login-visual p {
    font-size: 15px;
    max-width: 420px;
    line-height: 1.7;
    color: #dceeee;
    position: relative;
    z-index: 1;
}

.route-line {
    position: relative;
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.route-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--brand-accent);
}

.route-track {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, #ffffff88 0 8px, transparent 8px 16px);
    position: relative;
}

.route-track::after {
    content: "✈";
    position: absolute;
    top: -10px;
    left: 45%;
    color: var(--brand-accent);
    font-size: 18px;
}

.route-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #cfe9e9;
    text-transform: uppercase;
}

/* ---------- RIGHT: Form side ---------- */
.login-form-side {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

.login-box .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.login-box .brand .logo-badge {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 18px;
}

.login-box .brand span {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
}

.login-box h2 {
    font-size: 24px;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.login-box .subtitle {
    font-size: 13.5px;
    color: #6b7c7c;
    margin-bottom: 26px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #33474a;
    margin-bottom: 6px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9aa9a9;
}

.form-group input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #e1e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: var(--brand-dark);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fafcfc;
}

.form-group input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13,110,110,0.12);
    background: #fff;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.form-row-between label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #567;
    font-weight: 400;
    cursor: pointer;
}

.form-row-between a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 6px 16px rgba(13,110,110,0.25);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13,110,110,0.32);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #f5c6c2;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.role-note {
    margin-top: 24px;
    font-size: 12px;
    color: #8a9a9a;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .login-visual { display: none; }
    .login-form-side { flex: 1; }
}
