/* ============================================================
   Prevent login.css from affecting admin dashboard
   ============================================================ */

body.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url("../images/datacenter.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    position: relative;
}

body.login-page::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(0,170,255,0.2), rgba(0,255,157,0.2), rgba(255,215,0,0.2));
    background-size: 200% 200%;
    animation: gradientFlow 12s ease infinite;
    z-index: -1;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container Layout */
body.login-page .login-container {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
}

/* Card Panels */
body.login-page .card {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 0;
    padding: 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s ease, transform 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

body.login-page .card:hover {
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

/* Left and Right Panels */
body.login-page .left-panel,
body.login-page .right-panel {
    flex: 1 1 50%;
    height: 100vh;
    box-sizing: border-box;
}

/* Left Panel */
body.login-page .left-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body.login-page .left-panel h2 {
    color: #00aaff;
    margin-bottom: 20px;
    font-size: 2em;
}

body.login-page .left-panel .highlight { color: #00ff9d; font-weight: bold; font-size: 1.3em; }
body.login-page .left-panel .sub-highlight { color: #ffd700; font-weight: bold; font-size: 1.3em; }

body.login-page .section-content {
    display: block !important;
    margin-top: 15px;
    font-size: 1.2em;
    color: #e0e0e0;
    text-align: center;
}

/* Right Panel */
body.login-page .right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.login-page .right-panel h2 {
    color: #00ff9d;
    margin-bottom: 20px;
    font-size: 2.2em;
}

body.login-page .right-panel form {
    width: 70%;
    max-width: 400px;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.4;
}

body.login-page .right-panel label {
    margin-bottom: 4px;
}

body.login-page .right-panel input {
    width: 100%;
    padding: 6px 8px;
    margin: 6px 0 10px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #444;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.login-page .right-panel input:focus {
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(0,170,255,0.6);
    outline: none;
}

/* Brand Button */
body.login-page .brand-btn {
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #004080, #00b3b3);
    font-size: 1.2em;
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,170,255,0.6);
    transition: box-shadow 0.3s ease;
}

body.login-page .brand-btn:hover {
    background: linear-gradient(135deg, #00b3b3, #004080);
    box-shadow: 0 0 20px rgba(0,255,157,0.8);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Layout */
@media (max-width: 768px) {
    body.login-page .login-container { flex-direction: column; }
    body.login-page .left-panel,
    body.login-page .right-panel {
        flex: 1 1 100%;
        width: 100%;
        height: auto;
    }
    body.login-page .right-panel form { width: 90%; }
}
.login-error {
  background: rgba(255, 0, 0, 0.12);
  color: #ffb3b3;
  border: 1px solid rgba(255, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
  text-align: center;
}

/* ============================================================
   Register Page
   ============================================================ */

body.register-page .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 15px;
}

body.register-page .card {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 35px rgba(0, 170, 255, 0.35);
}

body.register-page .logo {
    text-align: center;
    margin-bottom: 15px;
}

body.register-page .logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
}

body.register-page h2 {
    text-align: center;
    color: #00ff9d;
    margin-bottom: 8px;
}

body.register-page .form-note {
    text-align: center;
    color: #d1d5db;
    margin-bottom: 25px;
}

body.register-page form {
    width: 100%;
}

body.register-page label {
    display: block;
    margin-bottom: 5px;
    color: #e5e7eb;
    font-weight: 600;
}

body.register-page input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

body.register-page input:focus {
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
    outline: none;
}

body.register-page .brand-btn {
    width: 100%;
    margin-top: 8px;
}

body.register-page .register-note {
    text-align: center;
    margin: 18px 0;
    color: #e5e7eb;
}

body.register-page .register-note a {
    color: #00ff9d;
    font-weight: bold;
    text-decoration: none;
}

body.register-page .advantages {
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.register-page .advantages h3 {
    color: #ffd700;
    margin-bottom: 12px;
}

body.register-page .advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.register-page .advantages li {
    margin-bottom: 10px;
    color: #e5e7eb;
    line-height: 1.5;
}

body.register-page .motivation {
    color: #00ff9d;
    font-weight: bold;
    margin-top: 12px;
}

body.register-page .login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #cbd5e1;
}