:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --accent-color: #58a6ff;
    --accent-hover: #79c0ff;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(48, 54, 61, 0.5);
    --input-bg: rgba(13, 17, 23, 0.8);
    --success-color: #238636;
    --error-color: #da3633;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Animated background gradient */
.bg-animated {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.05) 0%, rgba(13, 17, 23, 0) 50%),
                radial-gradient(circle at 80% 20%, rgba(158, 106, 255, 0.05) 0%, rgba(13, 17, 23, 0) 40%);
    z-index: -1;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-color), #9e6aff);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #e6edf3, #7d8590);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder {
    color: rgba(125, 133, 144, 0.5);
}

input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(88, 166, 255, 0);
    transition: box-shadow 0.3s ease;
}

input:focus + .input-glow {
    box-shadow: inset 0 0 10px rgba(88, 166, 255, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--accent-color);
    color: #0d1117;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 17, 23, 0.3);
    border-radius: 50%;
    border-top-color: #0d1117;
    animation: spin 1s linear infinite;
    opacity: 0;
    visibility: hidden;
}

.btn-submit.loading {
    pointer-events: none;
    background: var(--text-secondary);
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
    visibility: visible;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.status-message.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
}

.status-message.success {
    background: rgba(35, 134, 54, 0.1);
    color: #3fb950;
    border: 1px solid rgba(35, 134, 54, 0.4);
}

.status-message.error {
    background: rgba(218, 54, 51, 0.1);
    color: #ff7b72;
    border: 1px solid rgba(218, 54, 51, 0.4);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.hidden {
    display: none !important;
}

