* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-purple: #6F30A0;
    --brand-green: #A0D567;
    --brand-black: #000000;
    --text-dark: #2d3748;
    --bg-light: #f7fafc;
    --border-light: #e2e8f0;
    --shadow: 0 4px 20px rgba(111, 48, 160, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.login-body {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #5a2485 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

header {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--brand-purple);
}

h1, h2 {
    color: var(--brand-purple);
    font-weight: 600;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.subtitle {
    margin-bottom: 30px;
    color: #666;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(111, 48, 160, 0.15);
}

button, .btn {
    background: var(--brand-purple);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 5px;
    transition: all 0.3s;
}

button:hover, .btn:hover {
    background: #5a2485;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand-purple);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.logout-btn {
    background: #e53e3e;
}

.logout-btn:hover {
    background: #c53030;
}

/* Success messages */
.success {
    color: #2d6a2f;
    background: #edf7e6;
    border-left: 5px solid var(--brand-green);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Error messages */
.error {
    color: #721c24;
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.error code {
    background: #f1c0c5;
    color: #721c24;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: monospace;
}

table {
    width: 100%;
    background: white;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--brand-purple);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #f0e6ff; /* Light purple tint */
}

.value {
    font-family: 'Courier New', monospace;
    word-break: break-all;
    font-size: 0.95em;
    color: #4a5568;
}

.text-center {
    text-align: center;
}

.form {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 650px;
    margin: 30px auto;
}

label {
    display: block;
    margin-top: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brand-purple);
}

.actions {
    margin: 25px 0;
    text-align: right;
}

/* Click to copy */
.copy-key, .copy-value {
    transition: all 0.2s;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.copy-key:hover, .copy-value:hover {
    background-color: #f0e6ff;
}

/* Code display (keys) */
code {
    background: #f0e6ff;
    color: var(--brand-purple);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

/* Highlight for duplicate input */
.form input[style*="border: 2px solid #dc3545"],
.form input:focus[style*="border: 2px solid #dc3545"] {
    outline: none;
}