:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --indian-saffron: #ff9933;
    --indian-green: #138808;
    --indian-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-left: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Main login card */
.login-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 0 100px 2rem;
    transition: var(--transition);
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: linear-gradient(135deg, var(--indian-saffron), var(--primary-color));
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1.5rem;
}

/* Form styling */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Button styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: white;
    background: linear-gradient(135deg, var(--indian-saffron), var(--primary-color));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--indian-saffron));
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Error message */
.error-message {
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    color: #b91c1c;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--danger-color);
}

/* Register link */
.text-center {
    text-align: center;
    margin-top: 1rem;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.register-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Keyboard test section */
.keyboard-test {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.keyboard-test h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.language-toggle {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.language-option input[type="radio"] {
    margin-right: 0.5rem;
}

.language-option span {
    font-size: 0.8125rem;
    color: var(--text-color);
}

.practice-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    background-color: var(--card-bg);
    transition: var(--transition);
    margin-top: 0.75rem;
}

.practice-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.practice-textarea::placeholder {
    color: var(--text-light);
}

/* Notes section */
.notes-section {
    background: #fef9c3;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--warning-color);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.notes-section b {
    color: var(--text-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 0.75rem auto;
        padding: 0 0.75rem;
    }

    .card-header {
        font-size: 1.125rem;
        padding: 0.75rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .keyboard-test {
        padding: 1.25rem;
    }

    .language-toggle {
        flex-direction: column;
        gap: 0.375rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        height: 35px;
    }

    .card-header {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .keyboard-test {
        padding: 0.75rem;
    }

    .keyboard-test h3 {
        font-size: 1rem;
    }

    .practice-textarea {
        min-height: 80px;
        padding: 0.5rem;
    }
}

/* Indian-inspired color accents */
.indian-accent {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.indian-text {
    color: #ff6b35;
}