/* ========== Theme Variables ========== */
:root {
    /* 1. Dark Mode (Default Blue) */
    --bg-body: #0d1117;
    --bg-container: #161b22;
    --bg-input: #0d1117;
    --border-main: #30363d;
    --border-glow: rgba(255, 255, 255, 0.05);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent-blue: #58a6ff;
    --accent-green: #238636;
    --accent-green-hover: #2ea043;
    --shadow: rgba(0, 0, 0, 0.6);
    --panel-bg: #161b22;
}

.light-mode {
    /* 2. Light Mode (Light Blue) */
    --bg-body: #f6f8fa;
    --bg-container: #ffffff;
    --bg-input: #f6f8fa;
    --border-main: #d0d7de;
    --border-glow: rgba(0, 0, 0, 0.05);
    --text-main: #24292f;
    --text-muted: #57606a;
    --accent-blue: #0969da;
    --accent-green: #1a7f37;
    --accent-green-hover: #11632c;
    --shadow: rgba(31, 35, 40, 0.1);
    --panel-bg: #ffffff;
}

.green-mode {
    /* 3. Green Mode (Forest Green) */
    --bg-body: #051b11;
    --bg-container: #0a2d1d;
    --bg-input: #051b11;
    --border-main: #1e4620;
    --border-glow: rgba(76, 175, 80, 0.1);
    --text-main: #c8e6c9;
    --text-muted: #81c784;
    --accent-blue: #4caf50;
    --accent-green: #2e7d32;
    --accent-green-hover: #1b5e20;
    --shadow: rgba(0, 0, 0, 0.5);
    --panel-bg: #0a2d1d;
}

.savings-mode {
    /* 4. Savings Mode (Light Green) */
    --bg-body: #f9fbf9;
    --bg-container: #ffffff;
    --bg-input: #f1f8f4;
    --border-main: #e6f9ed;
    --border-glow: rgba(46, 204, 113, 0.1);
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --accent-blue: #2ecc71;
    --accent-green: #2ecc71;
    --accent-green-hover: #27ae60;
    --shadow: rgba(46, 204, 113, 0.1);
    --panel-bg: #ffffff;
}

/* ========== Global Styles ========== */
body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== Container ========== */
.login-container {
    background: var(--bg-container);
    padding: 40px 25px;
    border-radius: 16px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 10px 40px var(--shadow);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.login-container h2 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
}

#cbimg {
    max-width: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(88, 166, 255, 0.2));
}

/* ========== Form Elements ========== */
.input-icon-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

.input-icon-wrapper i:not(.toggle-password) {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue) !important;
    z-index: 5;
}

.styleal {
    width: 100%;
    padding: 12px 15px 12px 40px !important;
    background: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.styleal:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

/* Password Toggle */
#fapassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
}

.toggle-password:hover {
    color: var(--accent-blue);
}

/* Checkbox Styling */
.input-icon-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--accent-blue);
}

.input-icon-wrapper label {
    font-size: 13px;
    color: var(--text-muted);
    vertical-align: middle;
}

/* ========== Buttons ========== */
.access, input[type="submit"] {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: var(--accent-green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.access:hover, input[type="submit"]:hover {
    background: var(--accent-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.2);
}

/* ========== Links & Footer ========== */
#forgotpword, #contcreateone {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

#forgotpword b:hover, .ready u:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.ready {
    color: var(--accent-blue);
}

/* ========== Floating & Fixed Elements ========== */
.float-support {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: 0.3s;
    z-index: 1000;
}

.float-support:hover {
    transform: scale(1.1) rotate(10deg);
}

.backbtn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--panel-bg);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: all 0.3s;
    text-decoration: none;
}

.backbtn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ========== Loader & Components ========== */
#loader {
    background: var(--bg-container) !important;
    border: 1px solid var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    padding: 20px;
    border-radius: 10px;
}