/* =============================================
   BlueSky ERP – Login  |  Zoho-inspired Design
   ============================================= */

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F4F5F8;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── Two-panel wrapper ── */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left panel – brand / illustration ── */
.brand-panel {
    width: 52%;
    background: linear-gradient(160deg, #1A2640 0%, #0d1b2e 60%, #1a3a6b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.brand-panel::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(225,72,23,0.06);
    top: -120px; right: -120px;
}
.brand-panel::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(66,165,245,0.07);
    bottom: -80px; left: -80px;
}

.brand-inner { position: relative; z-index: 1; text-align: center; max-width: 420px; }

.brand-logo-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #E14817, #f5622e);
    border-radius: 22px;
    margin-bottom: 32px;
    box-shadow: 0 12px 40px rgba(225,72,23,0.35);
}
.brand-logo-wrap i { font-size: 36px; color: #fff; }

.brand-title {
    font-size: 38px; font-weight: 800;
    color: #ffffff; letter-spacing: -0.5px;
    margin-bottom: 12px; line-height: 1.1;
}
.brand-title .orange { color: #E14817; }

.brand-sub {
    font-size: 15px; color: rgba(255,255,255,0.55);
    letter-spacing: 2px; text-transform: uppercase;
    font-weight: 400; margin-bottom: 48px;
}

/* Feature items */
.feature-list { text-align: left; width: 100%; }
.feature-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7); font-size: 14px;
}
.feature-item:last-child { border-bottom: none; }
.feature-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.fi-orange { background: rgba(225,72,23,0.2); color: #f5844c; }
.fi-blue   { background: rgba(66,165,245,0.2); color: #64b5f6; }
.fi-green  { background: rgba(76,175,80,0.2);  color: #81c784; }
.fi-purple { background: rgba(156,39,176,0.2); color: #ce93d8; }

.brand-copy {
    margin-top: 48px; font-size: 12px;
    color: rgba(255,255,255,0.25); letter-spacing: 0.5px;
}

/* ── Right panel – login form ── */
.login-panel {
    flex: 1;
    background: #F4F5F8;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 48px;
}

.login-card {
    background: #ffffff;
    border-radius: 8px;
    width: 100%; max-width: 400px;
    padding: 40px 36px 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Mobile logo */
.mobile-logo {
    display: none;
    align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800;
    color: #1A2640; margin-bottom: 24px;
}
.mobile-logo .dot { color: #E14817; }
.mobile-logo i { color: #E14817; font-size: 20px; }

/* Card header */
.login-header { margin-bottom: 28px; }
.login-header h2 {
    font-size: 22px; font-weight: 700;
    color: #1A2640; margin-bottom: 6px;
}
.login-header p { font-size: 13px; color: #8a94a6; }

/* Alert */
.alert-box {
    background: #fff5f5; border: 1px solid #fecaca;
    border-left: 3px solid #ef4444; border-radius: 6px;
    padding: 10px 14px; margin-bottom: 18px;
    font-size: 12.5px; color: #b91c1c;
    display: flex; align-items: flex-start; gap: 8px;
}
.alert-box i { margin-top: 1px; flex-shrink: 0; }
.alert-box .errors { margin: 0; padding: 0; list-style: none; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: #3d4a5c; margin-bottom: 7px;
}
.input-wrapper { position: relative; }

.form-input {
    width: 100%; height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid #d1d9e0;
    border-radius: 5px;
    font-size: 14px; color: #2d3748;
    background: #fff; outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: #b0bac9; }
.form-input:focus {
    border-color: #E14817;
    box-shadow: 0 0 0 3px rgba(225,72,23,0.1);
}

.toggle-password {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    cursor: pointer; color: #b0bac9; font-size: 14px;
    transition: color 0.2s;
}
.toggle-password:hover { color: #E14817; }

/* Options row */
.form-options {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 22px;
}
.remember-me {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #5a677a; cursor: pointer;
}
.remember-me input[type="checkbox"] { accent-color: #E14817; width: 14px; height: 14px; }
.forgot-link { font-size: 13px; color: #E14817; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

/* Sign-in button */
.form-submit { margin-bottom: 0; }
.btn-login {
    width: 100%; height: 42px;
    background: #E14817;
    color: #fff; border: none; border-radius: 5px;
    font-size: 14px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover  { background: #c73e12; box-shadow: 0 4px 12px rgba(225,72,23,0.3); }
.btn-login:active { background: #b53610; }

/* Footer */
.login-footer {
    margin-top: 20px; text-align: center;
    font-size: 12px; color: #a0aab8;
    border-top: 1px solid #eef0f4; padding-top: 16px;
}
.login-footer a { color: #E14817; text-decoration: none; }

/* Divider */
.login-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 20px 0; color: #c0c9d4; font-size: 12px;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: #eef0f4;
}

/* Zoho-style "Powered by" */
.powered-by {
    text-align: center; margin-top: 12px;
    font-size: 11.5px; color: #c0c9d4;
}
.powered-by span { color: #E14817; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .brand-panel { display: none; }
    .login-panel { padding: 24px; background: #f4f5f8; }
    .mobile-logo { display: flex; }
    .login-card { max-width: 420px; }
    body { overflow: auto; }
}
@media (max-width: 480px) {
    .login-panel { padding: 16px; }
    .login-card { padding: 28px 20px; }
}
