/* ===== Global Styles ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="password"], 
input[type="text"], 
input[type="email"],
input[type="number"],
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

input[type="password"]:focus, 
input[type="text"]:focus, 
input[type="email"]:focus,
input[type="number"]:focus,
select:focus, 
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

/* Messages */
.error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
}

.success {
    color: #388e3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.alert-error {
    background: #ffcdd2;
    color: #c62828;
    border: 1px solid #c62828;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    padding: 8px 15px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lang-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

.lang-btn:hover {
    background: white;
    color: #667eea;
    border-color: white;
}

/* Alias for language buttons used in index.html */
.language-btn {
    padding: 8px 15px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.language-btn.active {
    background: #667eea;
    color: white;
}

.language-btn:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
}
