:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --background-color: #f5f7fa;
    --text-color: #333;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: var(--secondary-color);
}

.captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.captcha-image {
    margin-right: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
}

.success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 5px;
}

.role-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.role-option {
    flex: 1;
    min-width: 100px;
}

.role-option input[type="radio"] {
    display: none;
}

.role-option label {
    display: block;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.role-option input[type="radio"]:checked + label {
    background: var(--accent-color);
    color: white;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
}


.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.captcha-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 50px;
}

.btn-refresh {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}