:root {
    --bg-color: #F3EDF6;
    --text-color: #251C2B;
    --card-bg: #FCFAFD;
    --border-color: #D4C5DC;

    --primary: #6930C3;
    --primary-hover: #5725A5;

    --secondary: #E8DDF0;

    --shadow: rgba(55, 30, 70, 0.12);
    --input-bg: #F9F6FB;

    --error: #BD4056;
}

body.dark {
    --bg-color: #130E17;
    --text-color: #F3EAF6;
    --card-bg: #1F1725;
    --border-color: #3D3045;

    --primary: #9670D8;
    --primary-hover: #AA89E5;

    --secondary: #2B2033;

    --shadow: rgba(0, 0, 0, 0.38);
    --input-bg: #1A141E;

    --error: #E16A7D;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
}

header {
    height: 70px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 8px var(--shadow);
}

header h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-button {
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.header-logo {
    height: 40px;
    width: auto;
    border-radius: 100%;
    border: 2px solid var(--text-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary) 100%);
}

.admin-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--shadow);
    text-align: center;
}

.admin-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
}

.admin-login-subtitle {
    margin: 0 0 26px 0;
    font-size: 13.5px;
    opacity: 0.65;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    color: var(--error);
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 16px;
    text-align: left;
}

.submit-button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.demo-hint {
    margin: 20px 0 0 0;
    font-size: 12px;
    opacity: 0.55;
}

@media screen and (max-width: 480px) {
    .admin-login-card {
        padding: 28px 22px;
    }

    #custom-cursor {
        display: none !important;
    }

    body {
        cursor: default;
    }
}

#custom-cursor {
    position: fixed;
    width: 1rem;
    height: 1rem;
    background-color: #7845c0;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out;
    transform: translate(-50%, -50%) scale(1);
}
