/* === Font: Electrolize === */
/* latin */
@font-face {
  font-family: 'Electrolize';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./Electrolize.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, 
                  U+02C6, U+02DA, U+02DC, U+0304, U+0308, 
                  U+0329, U+2000-206F, U+20AC, U+2122, 
                  U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Reset and Base Styles === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.login-page {
    font-family: 'Electrolize', 'Segoe UI', Roboto, Arial, sans-serif;
    color: #e0e0e0;
    background: radial-gradient(circle at top left, #0c1016, #040508);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* === Container Layout === */
.login-left-panel {
    background-color: rgba(20, 25, 35, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    text-align: center;
    border: 1px solid rgba(78, 168, 222, 0.2);
}

.login-logo {
    width: 80px;
    margin-bottom: 1.2rem;
}

/* === Typography === */
h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #4ea8de;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

h3 {
    font-size: 1.1rem;
    color: #9abbd7;
    margin-bottom: 1.75rem;
}

/* === Form Styles === */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.form-group {
    text-align: left;
}

label {
    display: block;
    font-size: 1rem; /* increased from 0.9rem */
    color: #cfe6ff;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* === Input Fields === */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #12141a;
    color: #fff;
    text-align: center; /* centers text input */
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 1rem; /* slightly larger for clarity */
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4ea8de;
    outline: none;
    box-shadow: 0 0 6px rgba(78, 168, 222, 0.4);
}

/* === Submit Button === */
input[type="submit"] {
    background: #4ea8de;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 1rem; /* extra spacing above button */
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

input[type="submit"]:hover {
    background: #6ec1e4;
    box-shadow: 0 0 12px rgba(78, 168, 222, 0.5);
}

/* === Error Message === */
.login-error-message {
    background: #b00020;
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(176, 0, 32, 0.4);
}

/* === Responsive Design === */
@media (min-width: 768px) {
    body.login-page {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .login-left-panel {
        width: 420px;
    }

    .login-right-panel {
        display: none; /* Optional: add branding or animation later */
    }
}

@media (max-width: 767px) {
    .login-left-panel {
        width: 90%;
    }
}
