/* ==========================================================================
   Base & Layout
   ========================================================================== */
body {
    background-color: #121212;
    color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background-color: #1e1e1e;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #4ade80;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

/* ==========================================================================
   Form Controls & Grid
   ========================================================================== */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.name-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.name-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #4ade80;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    margin-top: 10px;
}

.btn-primary {
    background: #4ade80;
    color: #121212;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #38bdf8;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ==========================================================================
   Links & Navigation
   ========================================================================== */
.register-link,
.login-link {
    display: block;
    margin-top: 20px;
    color: #aaa;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link:hover,
.login-link:hover {
    color: #4ade80;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.success {
    background-color: #14532d;
    color: #4ade80;
}

.alert.error {
    background-color: #7f1d1d;
    color: #f87171;
    border: 1px solid #991b1b;
}

.alert.info {
    background-color: #1e3a8a;
    color: #93c5fd;
}