.lingoregister-container {
    max-width: 400px;
    margin: 0 auto;
}

.lingoregister-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin-bottom: 20px;
}

.lingoregister-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.lingoregister-field {
    margin-bottom: 15px;
    position: relative;
}

.lingoregister-field input[type="email"],
.lingoregister-field input[type="password"],
.lingoregister-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.lingoregister-field input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.password-toggle-text {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #4CAF50;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    background-color: #f8fff8;
    transition: all 0.3s ease;
    user-select: none;
}

.password-toggle-text:hover {
    background-color: #4CAF50;
    color: white;
}

.password-toggle-text.active {
    background-color: #4CAF50;
    color: white;
}

.lingoregister-terms {
    margin: 15px 0;
    font-size: 14px;
}

.lingoregister-terms label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.lingoregister-terms input[type="checkbox"] {
    margin-left: 5px;
}

.lingoregister-terms a {
    color: #4CAF50;
    text-decoration: none;
}

.lingoregister-terms a:hover {
    text-decoration: underline;
}

.lingoregister-field button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.lingoregister-field button[type="submit"]:hover {
    background-color: #45a049;
}

.lingoregister-field button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.lingoregister-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.lingoregister-message.success {
    background-color: #dff2d8;
    color: #4F8A10;
    border: 1px solid #D6E9C6;
}

.lingoregister-message.error {
    background-color: #ffebee;
    color: #D8000C;
    border: 1px solid #FFCDD2;
}

.lingoregister-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.lingoregister-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.lingoregister-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #777;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .lingoregister-container {
        padding: 10px;
    }
    
    .lingoregister-widget {
        padding: 15px;
    }
    
    .lingoregister-field input[type="email"],
    .lingoregister-field input[type="password"],
    .lingoregister-field input[type="text"],
    .lingoregister-field button[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
    
    .password-toggle-text {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* استایل برای حالت لودینگ */
.lingoregister-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.lingoregister-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}