/* Страницы авторизации - Миры Содружества */

.cwl-auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.cwl-auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.cwl-auth-box {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: #fff;
}

.cwl-register-box {
    max-width: 600px;
}

.cwl-auth-page .cwl-auth-box h1,
.cwl-auth-page .cwl-auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 26px !important;
    font-weight: 700;
}

.cwl-auth-box p {
    margin-bottom: 20px;
    color: #ccc;
}

.cwl-auth-box label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.cwl-auth-box .required {
    color: #ef4444;
}

.cwl-auth-box input[type="text"],
.cwl-auth-box input[type="email"],
.cwl-auth-box input[type="password"],
.cwl-auth-box textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cwl-auth-box input[type="text"]:focus,
.cwl-auth-box input[type="email"]:focus,
.cwl-auth-box input[type="password"]:focus,
.cwl-auth-box textarea:focus {
    border-color: #9333ea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.cwl-auth-box .description {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.cwl-auth-box input[type="radio"],
.cwl-auth-box input[type="checkbox"] {
    margin-right: 8px;
}

.cwl-auth-box label input[type="radio"],
.cwl-auth-box label input[type="checkbox"] {
    margin-right: 5px;
}

.cwl-auth-box .submit {
    text-align: center;
    margin-top: 30px;
}

.cwl-auth-box .button,
.cwl-auth-box input[type="submit"] {
    background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cwl-auth-box .button:hover,
.cwl-auth-box input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.cwl-auth-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.cwl-auth-links a {
    color: #9333ea;
    text-decoration: none;
    transition: color 0.2s;
}

.cwl-auth-links a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

.cwl-separator {
    margin: 0 10px;
    color: #555;
}

/* Сообщения */
.cwl-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cwl-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Страница кабинета */
.cwl-dashboard-page {
    padding: 40px 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cwl-auth-box {
        padding: 30px 20px;
    }

    .cwl-auth-page .cwl-auth-box h1,
    .cwl-auth-page .cwl-auth-box h2 {
        font-size: 18px !important;
    }
}