@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0f111a;
    --bg-card: rgba(30, 33, 50, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a5b8;
    --accent-color: #00e676;
    --accent-hover: #00c853;
    --border-color: rgba(255, 255, 255, 0.08);
    --danger-color: #ff3b3b;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at top right, rgba(0, 230, 118, 0.1), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(0, 188, 212, 0.1), transparent 40%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.brand-logo span {
    color: var(--accent-color);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), #00b0ff);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--bg-primary);
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 42px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.1);
}

.error-msg {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: rgba(255, 59, 59, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--accent-color);
}

.forgot-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 230, 118, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--accent-color);
}

.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.text-xs { font-size: 11px; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
