/* Frontend styles for login block */
.wp-block-clinicwp-login {
    width: 100%;
}

.cwp-login-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
}

.cwp-login-form {
    width: 100%;
}

.cwp-login-title {
    margin: 0 0 25px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.cwp-form-group {
    margin-bottom: 20px;
}

.cwp-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.cwp-form-input {
    width: 100%;
    padding: 12px 15px !important;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cwp-form-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cwp-login-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cwp-login-button:hover {
    opacity: 0.9;
}

.cwp-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cwp-login-links {
    margin-top: 20px;
    text-align: center;
}

.cwp-login-link {
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.cwp-login-link:hover {
    opacity: 0.8;
}

.cwp-alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.cwp-alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.cwp-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.cwp-alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

/* Loading state */
.cwp-login-loading {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.cwp-login-loading.active {
    display: block;
}

/* Forgot password section */
.cwp-forgot-password-section {
    display: none;
}

.cwp-forgot-password-section.active {
    display: block;
}

.cwp-back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.cwp-back-link:hover {
    color: #2271b1;
}

/* Responsive */
@media (max-width: 480px) {
    .cwp-login-wrapper {
        padding: 20px;
    }
    
    .cwp-login-title {
        font-size: 20px;
    }
}

/* Button hover states */
.cwp-login-form button[type="submit"]:hover {
    transition: all 0.3s ease;
}